Reads the original unprocessed geographic boundary files from Statistics Canada
get_statcan_geographies(
census_year,
level,
type = "cartographic",
cache_path = NULL,
timeout = 1000,
refresh = FALSE,
quiet = FALSE
)
census year to get the data for, right now only 2021 is supported
geographic level to return the data for, valid choices are "PR","CD","CMACA","CSD","CT","ADA","DA","ER","FED","DPL","POPCNTR", "FSA"
type of geographic data, valid choices area "cartographic" or "digital"
optional path to cache the data. If the cancensus cache path is set the geographic data gets cached in the "geographies" subdirectory of the cancensus cache path.
optional timeout parameter, adjust as needed if the data download times out when using slow connections
(logical) refresh the cache if true
(logical) suppress messages if `TRUE`
a spatial dataframe with the geographic data
# get the digital geographic boundaries for provinces and territories
if (FALSE) {
get_statcan_geographies(census_year="2021",level="PR",type="digital")
}