age_pyramids {IBMPopSim} | R Documentation |
Vectorial version in time of the function age_pyramid
. Not compatible with IBMs including swap events.
age_pyramids(population, time = 0, ages = c(0:110, Inf))
population |
Population data frame: characteristics in columns and individuals in rows. At least two columns |
time |
The age pyramid is computed at instants |
ages |
(Optional) A numeric vector of distinct positive values composing age groups. Must be in increasing order. |
For convenience. This is a just a lapply
call of age_pyramid
on the vector time
.