Learn R Programming

ech (version 0.1.3)

age_groups: 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")

Value

data.frame

Arguments

data

data.frame

cut

breaks points to cut a numeric variable

e27

Variable name of age

See Also

Other demographic: household_type()

Examples

Run this code
#' 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