View source: R/census_vectors.R
parent_census_vectors | R Documentation |
list_census_vectors
, search_census_vectors
, find_census_vectors
, or a direct string reference to the vector code.List all parent variables from vector hierarchies given either a list of Census
variables returned by
list_census_vectors
, search_census_vectors
, find_census_vectors
, or a direct string reference to the vector code.
parent_census_vectors(vector_list)
vector_list |
The list of vectors to be used, either a character vector or a filtered tibble
as returned from |
# Query parent vectors directly using vector identifier
parent_census_vectors("v_CA16_2519")
## Not run:
# Example using multiple vectors coerced into a list
parent_census_vectors(c("v_CA16_2519","v_CA16_2520","v_CA16_2521"))
# or, equivalently
selected_vectors <- c("v_CA16_2519","v_CA16_2520","v_CA16_2521")
parent_census_vectors(selected_vectors)
# Example using dplyr and piped arguments
library(dplyr, warn.conflicts = FALSE)
list_census_vectors("CA16") %>%
filter(vector == "v_CA16_2519") %>%
parent_census_vectors()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.