Creates subset of demogdata object.
Arguments
- data
Demogdata object such as created using
read.demogdata
orsmooth.demogdata
.- ages
Vector of ages to extract from data.
- combine.upper
If TRUE, ages beyond the maximum of
ages
are combined into the upper age group.
Examples
france.teens <- extract.ages(fr.mort, 13:19, FALSE)
plot(france.teens)