int2age: Infer lower age bounds from age class intervals.

View source: R/utilsAge.R

int2ageR Documentation

Infer lower age bounds from age class intervals.

Description

Determine lower bounds of age classes based on a vector of age intervals and a starting age.

Usage

int2age(AgeInt, ageMin = 0)

Arguments

AgeInt

integer or numeric. Vector of age intervals.

ageMin

integer. The lowest age, default 0.

Value

Age vector of same length as AgeInt.

Examples

AgeInt <- c(1,4,rep(5,17))
int2age(AgeInt)

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