calcAgeAbr: Calculate which abridged age group single ages belong to.

View source: R/utilsAge.R

calcAgeAbrR Documentation

Calculate which abridged age group single ages belong to.

Description

Assign single ages to 5-year abridged age groups. That means that age 0 is kept as a single age, ages 1-4 are grouped together as abridged age 1, and thereafter 5-year age groups are used.

Usage

calcAgeAbr(Age)

Arguments

Age

integer. Vector of single ages (lower bound).

Details

In the case that the single Age vector starts at some age higher than 4, this is just the same as calcAgeN(Age,5,0).

Value

An integer vector of length(Age) indicating the abridged age group that each single age belongs to.

Examples

Age <- 0:70
calcAgeAbr(Age)
calcAgeN(Age,5,0)

timriffe/DemoTools documentation built on Jan. 28, 2024, 5:13 a.m.