Learn R Programming

demography (version 2.0)

set.upperage: Combine the upperages of a demogdata object.

Description

Computes demographic rates by combining age groups.

Usage

set.upperage(data, max.age)

Value

Demogdata object with same components as data but with a subset of ages.

Arguments

data

Demogdata object such as created using read.demogdata or smooth.demogdata.

max.age

Upper age group. Ages beyond this are combined into the upper age group.

Author

Rob J Hyndman

Examples

Run this code
france.short <- set.upperage(fr.mort, 85)

Run the code above in your browser using DataLab