powered by
This function allows you to calculate age groups
age_groups(data = ech::toy_ech_2018, cut = c(0, 4, 11, 17, 24), e27 = "e27")
data.frame
breaks points to cut a numeric variable
Variable name of age
Other demographic: household_type()
household_type()
# NOT RUN { toy_ech_2018 <- age_groups(data = ech::toy_ech_2018, cut = c(0, 4, 11, 17, 24)) # }
Run the code above in your browser using DataLab