This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/window.html
window {base}R Documentation

Time Windows

Description

window is a generic function which extracts the subset of the object x observed between the times start and end. Methods are available for time series and point-processes.

Usage

window(x, start, end)

Arguments

x

a time-series or other object.

start

the start time of the period of interest.

end

the end time of the period of interest.

See Also

time, ts.

Examples

data(presidents)
sixties <- window(presidents, 1960, c(1969,4))

[Package base version 0.60 ]