calcAgeAbr | R Documentation |
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.
calcAgeAbr(Age)
Age |
integer. Vector of single ages (lower bound). |
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)
.
An integer vector of length(Age)
indicating the abridged age group that each single age belongs to.
Age <- 0:70
calcAgeAbr(Age)
calcAgeN(Age,5,0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.