\Header{renumerate}{Convert a Formula Transformed by 'denumerate'}
\methalias{renumerate.formula}{renumerate}
\keyword{models}{renumerate}
\begin{Description}\relax
\code{\Link{denumerate}} converts a formula written using the conventions of
\code{\Link{loglm}} into one that \code{\Link{terms}} is able to process.  \code{renumerate}
converts it back again to a form like the original.
\end{Description}
\begin{Usage}
\begin{verbatim}
renumerate(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] A formula, normally as modified by \code{\Link{denumerate}}.

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This is an inverse function to \code{\Link{denumerate}}.  It is only needed
since \code{\Link{terms}} returns an expanded form of the original formula
where the non-marginal terms are exposed.  This expanded form is
mapped back into a form corresponding to the one that the user
originally supplied.
\end{Details}
\begin{Value}
A formula where all variables with names of the form \code{.vn}, where
\code{n} is an integer, converted to numbers, \code{n}, as allowed by the
formula conventions of \code{\Link{loglm}}.
\end{Value}
\begin{SeeAlso}\relax
\code{\Link{denumerate}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
denumerate(~(1+2+3)^3 + a/b)
## ~ (.v1 + .v2 + .v3)^3 + a/b
renumerate(.Last.value)
## ~ (1 + 2 + 3)^3 + a/b
\end{ExampleCode}
\end{Examples}

