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

parent_census_vectors(vector_list)

Arguments

vector_list

The list of vectors to be used

Examples

library(dplyr, warn.conflicts = FALSE) list_census_vectors("CA16") %>% filter(vector == "v_CA16_4092") %>% parent_census_vectors()
#> # A tibble: 3 x 7 #> vector type label units parent_vector aggregation details #> <chr> <fct> <chr> <fct> <chr> <chr> <chr> #> 1 v_CA16… Total Western Europe… Numb… v_CA16_4044 Additive CA 2016 Census;… #> 2 v_CA16… Total European origi… Numb… v_CA16_3999 Additive CA 2016 Census;… #> 3 v_CA16… Total Total - Ethnic… Numb… NA Additive CA 2016 Census;…