Learn R Programming

demography (version 1.11)

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

Description

Computes demographic rates by combining age groups.

Usage

set.upperage(data, max.age=100)

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.

Value

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

Examples

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

Run the code above in your browser using DataLab