window.uts_vector: Time Window

Description Usage Arguments See Also Examples

View source: R/uts_vector.R

Description

Extract a subperiod time series between times start and end.

Usage

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

Arguments

x

a "uts_vector" object.

start, end

POSIXct object or coercible using as.POSIXct. The start and end times, respectively, for the individual subperiod time series. If there are fewer times than time series, then they are recycled in the standard fashion.

...

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
5
# For each time series, drop observations before 2007-11-09 Eastern Standard Time
window(ex_uts_vector(), start="2007-11-09 EST")

# Use a different end time for each subperiod time series
window(ex_uts_vector(), end=c("2007-11-09 12:00:00 EST", "2007-11-09 EST"))

andreas50/utsMultivariate documentation built on Sept. 27, 2021, 10:33 p.m.