census_vectors: Return Census variable names and labels as a tidy data frame...

Description Usage Arguments Value Examples

View source: R/cancensus.R

Description

Return Census variable names and labels as a tidy data frame (Deprecated)

Usage

1

Arguments

x

A data frame, sp or sf object returned from get_census or similar.

Value

A data frame with a column variable containing the truncated variable name, and a column label describing it.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Query census data with truncated labels:
census_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:
census_vectors(census_data)

## End(Not run)

cancensus documentation built on Nov. 20, 2018, 5:05 p.m.