\HeaderA{unit.length}{Length of a Unit Object}{unit.length}
\keyword{dplot}{unit.length}
\begin{Description}\relax
The length of a unit object is defined as the number of unit
values in the unit object.

This function has been deprecated in favour of a unit method for
the generic \code{length} function.
\end{Description}
\begin{Usage}
\begin{verbatim}
unit.length(unit)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{unit}] A unit object.
\end{ldescription}
\end{Arguments}
\begin{Value}
An integer value.
\end{Value}
\begin{Author}\relax
Paul Murrell
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{unit}{unit}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
length(unit(1:3, "npc"))
length(unit(1:3, "npc") + unit(1, "inches"))
length(max(unit(1:3, "npc") + unit(1, "inches")))
length(max(unit(1:3, "npc") + unit(1, "strwidth", "a"))*4)
length(unit(1:3, "npc") + unit(1, "strwidth", "a")*4)
\end{ExampleCode}
\end{Examples}

