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

extract.years

Extract some years from a demogdata object


Description

Creates subset of demogdata object.

Usage

extract.years(data, years)

Arguments

data

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

years

Vector of years to extract from data.

Value

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

Author(s)

Rob J Hyndman

Examples

france.1918 <- extract.years(fr.mort,1918)

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.