Some resources from the City of Toronto Open Data Portal are ZIP files containing multiple files. When a resource like this is retrieved using get_resource(), the result is a list with elements named after each file.

For example, the dataset on the Annual Summary of Reportable Communicable Diseases:

To access a single file, you can pull out the element by name: