age_group: Classify age groups

Description Usage Arguments Value Examples

View source: R/age_group.R

Description

classify the age group of the input age

Usage

1
age_group(x, droplevel = TRUE)

Arguments

x

a vector of ages

droplevel

if equals TRUE, unused levels of x will be dropped.

Value

factor with levels of "Children","Youth","Adult","Senior".

Examples

1
age_group(c(2,70,45,22,27))

wang114/foofactorsran documentation built on May 4, 2019, 12:57 a.m.