Sets or retrieves the
"units" attribute of an object.
units.default replaces the builtin
version, which only works for time series objects. If the variable is
also given a
label, subsetting (using
"units" attribute. For a
units first looks for an overall
"units" attribute, then
it looks for
units for the
time2 variable then for
1 2 3 4 5 6 7
the units of the object, or ""
value to which to set result if no appropriate attribute is found
the units attribute of x, if any; otherwise, the
units attribute of
tspar attribute of
x if any; otherwise the value
none. Handling for
Surv objects is different (see above).
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.