\HeaderA{na.contiguous}{Find Longest Contiguous Stretch of non-NAs}{na.contiguous}
\methaliasA{na.contiguous.default}{na.contiguous}{na.contiguous.default}
\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(object, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] a univariate or multivariate time series.
\item[\code{...}] further arguments passed to or from other methods.
\end{ldescription}
\end{Arguments}
\begin{Value}
A time series without missing values.  The class of \code{object} will
be preserved.
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{na.omit}{na.omit}} and \code{\LinkA{na.omit.ts}{na.omit.ts}};
\code{\LinkA{na.fail}{na.fail}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
na.contiguous(presidents)
\end{ExampleCode}
\end{Examples}

