library(data.table)
library(RcensusPkg)
# Get the names currently supported category variables
category_names_v <- RcensusPkg::get_category_strings(get_names = TRUE)
# Get the integer/string pairs for the category name "sex"
sex_category_dt <- RcensusPkg::get_category_strings(name = "sex")
Run the code above in your browser using DataLab