Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extract.ages

Extract some ages from a demogdata object


Description

Creates subset of demogdata object.

Usage

extract.ages(data, ages, combine.upper = TRUE)

Arguments

data

Demogdata object such as created using read.demogdata or smooth.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.

Value

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

Author(s)

Rob J Hyndman

Examples

france.teens <- extract.ages(fr.mort,13:19,FALSE)
plot(france.teens)

demography

Forecasting Mortality, Fertility, Migration and Population Data

v1.22
GPL (>= 2)
Authors
Rob J Hyndman with contributions from Heather Booth, Leonie Tickle and John Maindonald.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.