window {FLCore} | R Documentation |
Selects a section of the object based on year contraints. For composed classes it will constraint all the slots equally.
The function call is
function (x, start, end, extend = TRUE, frequency = 1)
where x
is the object, start
and end
define the time lag, extend
is a logical that forces the object to have the defined time lag fulfilling the missing values with NA
, and frequency
is the time interval to be extracted.
FLR Team
FLStock-class
, FLIndices-class
, window
data(ple4) ple490 <- window(ple4, 1990, 2000)