`list_census_vectors`

or `search_census_vectors`

.`R/cancensus.R`

`child_census_vectors.Rd`

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

or `search_census_vectors`

.

child_census_vectors(vector_list, leaves_only = FALSE, max_level = NA)

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 |

max_level | optional, maximum depth to look for child vectors. Default is NA will return all child census vectors.. |

library(dplyr, warn.conflicts = FALSE) list_census_vectors("CA16") %>% filter(vector == "v_CA16_4092") %>% child_census_vectors(TRUE)#> # A tibble: 0 x 7 #> # … with 7 variables: vector <chr>, type <fct>, label <chr>, units <fct>, #> # parent_vector <chr>, aggregation <chr>, details <chr>