age_groups | R Documentation |
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 |
data.frame |
cut |
breaks points to cut a numeric variable |
e27 |
Variable name of age |
data.frame
Other demographic:
household_type()
#' toy_ech_2018 <- age_groups(data = ech::toy_ech_2018, cut = c(0, 4, 11, 17, 24))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.