\HeaderA{unit.rep}{Replicate Elements of Unit Objects}{unit.rep}
\keyword{dplot}{unit.rep}
\begin{Description}\relax
Replicates the units according to the values given in \code{times} and
\code{length.out}.

This function has been deprecated in favour of a unit method for
the generic \code{rep} function.
\end{Description}
\begin{Usage}
\begin{verbatim}
unit.rep(x, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An object of class \code{"unit"}. 
\item[\code{...}] arguments to be passed to \code{\LinkA{rep}{rep}} such as
\code{times} and \code{length.out}.
\end{ldescription}
\end{Arguments}
\begin{Value}
An object of class \code{"unit"}.
\end{Value}
\begin{Author}\relax
Paul Murrell
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{rep}{rep}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
rep(unit(1:3, "npc"), 3)
rep(unit(1:3, "npc"), 1:3)
rep(unit(1:3, "npc") + unit(1, "inches"), 3)
rep(max(unit(1:3, "npc") + unit(1, "inches")), 3)
rep(max(unit(1:3, "npc") + unit(1, "strwidth", "a"))*4, 3)
rep(unit(1:3, "npc") + unit(1, "strwidth", "a")*4, 3)
\end{ExampleCode}
\end{Examples}

