powered by
Computes demographic rates by combining age groups.
set.upperage(data, max.age)
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
Upper age group. Ages beyond this are combined into the upper age group.
Rob J Hyndman
france.short <- set.upperage(fr.mort, 85)
Run the code above in your browser using DataLab