powered by
Creates subset of demogdata object.
extract.ages(data, ages, combine.upper = TRUE)
Demogdata object with same components as data but with a subset of ages.
data
Demogdata object such as created using read.demogdata or smooth.demogdata.
read.demogdata
smooth.demogdata
Vector of ages to extract from data.
If TRUE, ages beyond the maximum of ages are combined into the upper age group.
ages
Rob J Hyndman
france.teens <- extract.ages(fr.mort,13:19,FALSE) plot(france.teens)
Run the code above in your browser using DataLab