age2int: Infer age class intervals from lower age bounds.

Description Usage Arguments Details Value

View source: R/utils.R

Description

Determine age class intervals based on a vector of age class lower bounds.

Usage

1
age2int(Age, OAG = TRUE, OAvalue = NA)

Arguments

Age

integer or numeric. Vector of lower age group bounds.

OAG

logical. Whether or not the final age group is open. Default TRUE.

OAvalue

numeric or integer. The value to use for the final age interval if OAG = TRUE. Default NA.

Details

If the final age group is open, it is given a value of NA by default, or else a user-determined value. If the final age group is closed, it is assumed to be equal to the next-lower interval. If the final age interval is known and not equal to the next lowest interval, specify OAG = TRUE and assign its value to OAvalue.

Value

Age interval vector, of same length as Age.


hhmacedo/dmtls documentation built on Dec. 20, 2021, 3:49 p.m.