\Header{window}{Time Windows}
\alias{window.default}{window}
\alias{window.ts}{window}
\keyword{ts}{window}
\begin{Usage}
\begin{verbatim}
window(x, start, end)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{x}] a time-series or other object.
\item[\texttt{start}] the start time of the period of interest.
\item[\texttt{end}] the end time of the period of interest.
\end{ldescription}
\end{Arguments}
\begin{Description}
\texttt{window} is a generic function which
extracts the subset of the object \texttt{x}
observed between the times \texttt{start} and \texttt{end}.
Methods are available for time series and point-processes.\end{Description}
\begin{SeeAlso}
\texttt{\Link{time}}, \texttt{\Link{ts}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(presidents)
sixties <- window(presidents, 1960, c(1969,4))
\end{ExampleCode}
\end{Examples}

