Description Usage Arguments Value Examples
View source: R/get_region_data.R
Get census region data at the Canadian level in a tidy format.
1 | get_region_data(dataset, query_vector, region_level = "CMA")
|
dataset |
character vector of the data set name (e.g., "CA16") |
query_vector |
character vector of vector from which to retrieve the data (e.g., "v_CA16_815") |
region_level |
character vector of which region to aggregate by. Default is "CMA" for Census Metropolitan Area. |
a tidy data frame of region data at the Canadian level
1 2 3 4 5 6 | ## Not run:
library(canlang)
options(cancensus.api_key = "your_api_key")
get_region_data("CA16", "v_CA16_563")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.