get_statcan_geographic_attributes | R Documentation |
Reads the Geographies Attributes File for the given census year. The table contains the information on how all the geographic levels are related for each area, and population, dwelling and household counts. Data gets cached after first download if the cancensus cache path has been set. A reference guide is available at https://www150.statcan.gc.ca/n1/en/catalogue/92-151-G2021001
get_statcan_geographic_attributes(census_year = "2021", refresh = FALSE)
census_year |
census year to get the data for, right now only 2006, 2011, 2016, 2021 are supported |
refresh |
(logical) refresh the cache if true |
tibble with the relationship data
# list add the cached census data
## Not run:
get_statcan_geographic_attributes("2021")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.