add_cansim_vectors_to_template | R Documentation |
Retrieves vector information for given table and coordinates. This can be used to query data by vectors, it only returns vector information on coordinates which are present in the data table, so it gives an effective way to filter coordinates. Vector information is not available for census data tables.
add_cansim_vectors_to_template(template, refresh = FALSE)
template |
A (possibly filtered) cansim table template as returned by 'get_cansim_table_template' |
refresh |
Refresh the data from the Statistics Canada API |
a tibble containing the table template with added vector information
## Not run:
template <- get_cansim_table_template("34-10-0013")
template |>
filter(Geography=="Canada") |>
add_cansim_vectors_to_template()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.