age_groups: This function allows you to calculate age groups

View source: R/utils.R

age_groupsR Documentation

This function allows you to calculate age groups

Description

This function allows you to calculate age groups

Usage

age_groups(data = ech::toy_ech_2018, cut = c(0, 4, 11, 17, 24), e27 = "e27")

Arguments

data

data.frame

cut

breaks points to cut a numeric variable

e27

Variable name of age

Value

data.frame

See Also

Other demographic: household_type()

Examples

#' toy_ech_2018 <- age_groups(data = ech::toy_ech_2018, cut = c(0, 4, 11, 17, 24))

calcita/ech documentation built on March 2, 2024, 7:54 a.m.