Skip to contents

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

Rob J Hyndman

Examples

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