label_vectors {cancensus} | R Documentation |
Return Census variable names and labels as a tidy data frame
Description
Return Census variable names and labels as a tidy data frame
Usage
label_vectors(x)
Arguments
x |
A data frame, |
Value
A data frame with a column variable
containing the truncated
variable name, and a column label
describing it.
Examples
## Not run:
# Query census data with truncated labels:
label_data <- get_census(dataset='CA16', regions=list(CMA="59933"),
vectors=c("v_CA16_408","v_CA16_409","v_CA16_410"),
level='CSD', geo_format = "sf", labels="short")
# Get details for truncated vectors:
label_vectors(label_data)
## End(Not run)
[Package cancensus version 0.5.7 Index]