make_age_group_labels: Make character age-group labels from numeric age-group...

View source: R/make_age_group_labels.R

make_age_group_labelsR Documentation

Make character age-group labels from numeric age-group breaks.

Description

The age-group breaks are interpreted as open to the left and closed to the right. See examples.

Usage

make_age_group_labels(age_group_breaks)

Arguments

age_group_breaks

Numeric vector of age group breaks

Value

Character vector

Examples

> make_age_group_labels(c(0,5,13,Inf))
"0-4"    "5-12"   "13plus"

seanob01PHS/list.utils documentation built on March 26, 2022, 12:41 p.m.