R/pyramid.R
age_pyramids.population.Rd
Vectorial version in time of the function age_pyramid.population
. Not compatible with IBMs including swap events.
# S3 method for class 'population'
age_pyramids(object, time = 0, ages = c(0:110, Inf))
Object of population
class representing a population.
The age pyramid is computed at instant time
. Must be a numeric greater than or equal to 0.
(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.population
on the vector time
.