\Header{checktframeConsistent}{Check for a Consistent tframe}
\methalias{checktframeConsistent.default}{checktframeConsistent}
\keyword{programming}{checktframeConsistent}
\keyword{utilities}{checktframeConsistent}
\keyword{ts}{checktframeConsistent}
\keyword{chron}{checktframeConsistent}
\begin{Description}\relax
Check if tframe and a time series are consistent with one another.
\end{Description}
\begin{Usage}
\begin{verbatim}
    checktframeConsistent(tf, x)
    ## Default S3 method:
    checktframeConsistent(tf, x)
    \end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{tf}] A tframe)
\item[\code{x}] An object)
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Check if the number of periods in the tframe corresponds to the
number of observations in the time series.
\end{Details}
\begin{Value}
A logical scalar.\end{Value}
\begin{SeeAlso}\relax
\code{\Link{is.tframe}}
\code{\Link{periods}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
    z <- ts(rnorm(100), start=c(1982,1), frequency=12)
    checktframeConsistent(tframe(z), rnorm(100))
\end{ExampleCode}
\end{Examples}

