# NOT RUN {
# Using age_cat_fun() to create categorical age values from DHHGAGE_cont
# age_cat_fun() is specified in variable_details.csv along with the CCHS
# variables and cycles included.
# To generate DHHGAGE_C in a cycle, use rec_with_table() and specify
# DHHGAGE_C along with DHHGAGE_cont.
library(cchsflow)
cat_age2009_2010 <- rec_with_table(
cchs2009_2010_p, c(
"DHHGAGE_cont", "DHHGAGE_C"
)
)
# }
Run the code above in your browser using DataLab