age_grp: Define age group

Description Usage Arguments Value Author(s) See Also Examples

View source: R/age_grp.R

Description

Returns the 5-year age group ("<40", "40-44", ..., or "85+" years) to which an individual belongs.

Usage

1
age_grp(age)

Arguments

age

continuous variable in years.

Value

Factor indicating the 5-year age group.

Author(s)

Stavroula A. Chrysanthopoulou

See Also

d_grp

Examples

1
2
3
4
# 5-year age group of an individual 21 years old:
  age_grp(21)
# 5-year age group of an individual 77.5 years old:
  age_grp(77.5)

MILC documentation built on May 2, 2019, 3:45 a.m.