stats-window: Methods for 'window' in package 'timeSeries'

windowR Documentation

Methods for 'window' in package 'timeSeries'

Description

Extract a part from a "timeSeries" object.

Usage

## S4 method for signature 'timeSeries'
window(x, start, end, ...)

Arguments

x

an object of class "timeSeries".

start, end

starting date and end date, end must be after start.

...

arguments passed to other methods.

Details

window extracts the subset of the "timeSeries" object x observed between the times start and end.

See Also

head, outlier

Examples

## Load LPP Benchmark Returns -
   x <- LPP2005REC[, 7:9]
   range(time(x))
  
## Extract Data for January 2006 - 
   window(x, "2006-01-01", "2006-01-31")

timeSeries documentation built on Aug. 26, 2023, 5:08 p.m.