\Header{na.contiguous}{NA Handling Routines for Time Series}
\keyword{ts}{na.contiguous}
\begin{Description}\relax
Find the longest consecutive stretch of non-missing values in a time
series object.  (In the event of a tie, the first such stretch.)\end{Description}
\begin{Usage}
\begin{verbatim}
na.contiguous(frame)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{frame}] a univariate or multivariate time series.
\end{ldescription}
\end{Arguments}
\begin{Value}
A time series without missing values.  The class of \code{frame} will
be preserved.\end{Value}
\begin{Author}\relax
B. D. Ripley\end{Author}
\begin{SeeAlso}\relax
\code{\Link{na.omit}} and \code{\Link{na.omit.ts}};
\code{\Link{na.fail}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(presidents)
na.contiguous(presidents)
\end{ExampleCode}
\end{Examples}

