get_resource | R Documentation |
Download a resource from the portal directly into your R session. CSV, XLS, XLSX, XML, JSON, SHP, ZIP, and GeoJSON resources are supported.
get_resource(resource)
resource |
A way to identify the resource. Either a resource ID (passed as a character vector directly) or a single resource resulting from |
In most cases, the resource is returned as a tibble or list of tibbles. If it is a spatial resource (i.e. SHP or GeoJSON), it is returned as an sf object.
list_package_resources("https://open.toronto.ca/dataset/neighbourhoods/") %>% head(1) %>% get_resource()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.