window.uts: Time Window

Description Usage Arguments See Also Examples

View source: R/uts.R

Description

Extract a subperiod time series between times start and end.

Usage

1
2
## S3 method for class 'uts'
window(x, start = NULL, end = NULL, ...)

Arguments

x

a "uts" object.

start, end

POSIXct objects or coercible using as.POSIXct. The start and end times, respectively, of the period of interest.

...

further arguments passed to or from methods.

See Also

head, head_t, tail, tail_t for other methods that extract a subperiod time series.

Examples

1
2
3
4
window(ex_uts(), start="2007-11-09")
window(ex_uts(), start="2007-11-08", end="2007-11-09")
window(ex_uts(), start=as.POSIXct("2007-11-09", tz="America/New_York"))
window(ex_uts(), start=as.POSIXct("2007-11-09", tz="Australia/Sydney"))

andreas50/uts documentation built on April 8, 2021, 10:03 a.m.