The R Project SVN R

Rev

Rev 70284 | Rev 85904 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70284 Rev 71444
Line 91... Line 91...
91
  unit objects.  In particular, it is possible to add and subtract
91
  unit objects.  In particular, it is possible to add and subtract
92
  unit objects (e.g., \code{unit(1, "npc") - unit(1, "inches")}),
92
  unit objects (e.g., \code{unit(1, "npc") - unit(1, "inches")}),
93
  and to specify the minimum or maximum of a list
93
  and to specify the minimum or maximum of a list
94
  of unit objects (e.g., \code{min(unit(0.5, "npc"), unit(1,
94
  of unit objects (e.g., \code{min(unit(0.5, "npc"), unit(1,
95
    "inches"))}).
95
    "inches"))}).
-
 
96
 
-
 
97
  There is a \code{format} method for units, which should respond to
-
 
98
  the arguments for the default \code{format} method, e.g.,
-
 
99
  \code{digits} to control the number of significant digits
-
 
100
  printed for numeric values.
96
}
101
}
97
\section{WARNING}{
102
\section{WARNING}{
98
  There is a special function \code{unit.c} for concatenating
103
  There is a special function \code{unit.c} for concatenating
99
  several unit objects.
104
  several unit objects.
100
 
105