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

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)
#> [1] 0 1 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85