child_census_vectors: List all child variables from vector hierarchical based on a...

Description Usage Arguments Examples

View source: R/cancensus.R

Description

List all child variables from vector hierarchical based on a (sub-)list of census variables returned by list_census_vectors or search_census_vectors.

Usage

1
child_census_vectors(vector_list, leaves_only = FALSE)

Arguments

vector_list

The list of vectors to be used

leaves_only

Boolean flag to indicate if only leaf vectors should be returned, i.e. vectors that don't have children

Examples

1
2
3
4
5
library(dplyr, warn.conflicts = FALSE)

list_census_vectors("CA16") %>%
  filter(vector == "v_CA16_4092") %>%
  child_census_vectors(TRUE)

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