\Header{na.contiguous}{Find Longest Contiguous Stretch of non-NAs}
\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{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}

