Get census language data from the Canadian level in a tidy format.

get_language_data(dataset, query_vector, region_level = "C")

Arguments

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 "C" for Canada level.

Value

a tidy data frame of language data at the Canadian level

Examples

if (FALSE) { library(canlang) options(cancensus.api_key = "your_api_key") get_language_data("CA16", "v_CA16_815") }