age.cat: Categorize a continuous age variable into common categories.

Description Usage Arguments Value Examples

Description

Categorize a continuous age variable into common categories.

Usage

1
age.cat(data, agevar, groups = "census", factor = TRUE)

Arguments

data

Data Frame with the age variable to categorize.

agevar

Name of the age variable.

groups

Categorization Scheme: census, census65, five, or ten.

factor

Return a factor or not. Defaults to TRUE

Value

A factor, unless otherwise specified, with recoded agevar.

Examples

1

ColoradoDemography/ProfileDashboard documentation built on May 27, 2019, 1:08 a.m.