age_bands: Place age into appropriate X year band

Description Usage Arguments Value Examples

View source: R/age_bands.R

Description

Place age into appropriate X year band

Usage

1
age_bands(age, X = 10)

Arguments

age

Age of the person.

X

Width of year band (default: 10)

Value

The age-band that the age belongs

Examples

1
2
3
4
age_bands(3)
# "0-9"
age_bands(3, X= 5)
# "0-4"

codonlibrary/codonR documentation built on Dec. 3, 2019, 6:47 p.m.