Rev 37408 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{unit.length}\alias{unit.length}\title{Length of a Unit Object}\description{The length of a unit object is defined as the number of unitvalues in the unit object.This function has been deprecated in favour of a unit method forthe generic \code{length} function.}\usage{unit.length(unit)}\arguments{\item{unit}{A unit object.}}\value{An integer value.}\author{Paul Murrell}\seealso{\code{\link{unit}}}\examples{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)}\keyword{dplot}