window: Extract time (year) windows of an FLR object

Description Generic function Methods Author(s) See Also Examples

Description

This method extracts a section of or extends an FLQuant or other FLR objects along the year dimension. If a frequency is specified, the new object contains data at only those year steps.

Although objects of class FLQuant do have another temporal dimension, season, currently window only works along the year dimension. To subset along other dimensions, refer to Extract-FLCore.

Generic function

window(x)

Methods

signature(x=FLQuant) :

Subset along the year dimension

signature(x=FLComp) :

The method is applied to each slot of class FLQuant.

signature(x=FLlst) :

The window method is applied to each element in the list.

Author(s)

The FLR Team

See Also

window, Extract-FLCore

Examples

1
2
3
flq <- FLQuant(rnorm(50), dimnames=list(age=1:5, year=1990:2000))
window(flq, start=1995, end=1998)
window(flq, start=1990, end=2010, frequency=2)

FLCore documentation built on May 2, 2019, 5:46 p.m.