maxA2abridged: Determine abridged ages up to a given maximum age group.

View source: R/utilsAge.R

maxA2abridgedR Documentation

Determine abridged ages up to a given maximum age group.

Description

Produce standard abridged age groups (lower bounds) up to a specified maximum age group.

Usage

maxA2abridged(ageMax = 80)

Arguments

ageMax

integer. Default 80.

Details

If the highest age group is not evenly divisible by 5 then age classes only go up to its 5-year lower bound.

Value

integer. Vector of ages, e.g. c(0,1,5,10,15,...).

Examples

maxA2abridged(80)
all(maxA2abridged(100) == maxA2abridged(102))

timriffe/DemoTools documentation built on Oct. 14, 2024, 12:53 p.m.