\HeaderA{renumerate}{Convert a Formula Transformed by 'denumerate'}{renumerate}
\methaliasA{renumerate.formula}{renumerate}{renumerate.formula}
\keyword{models}{renumerate}
\begin{Description}\relax
\code{\LinkA{denumerate}{denumerate}} converts a formula written using the conventions of
\code{\LinkA{loglm}{loglm}} into one that \code{\LinkA{terms}{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{\LinkA{denumerate}{denumerate}}.

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This is an inverse function to \code{\LinkA{denumerate}{denumerate}}.  It is only needed
since \code{\LinkA{terms}{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{\LinkA{loglm}{loglm}}.
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{denumerate}{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}

