Description Usage Arguments Details Value See Also
The standard accessors x[...], x[[...]], and x$name are
all available for unitted objects.
1 2 3 4 5 6 7 8 |
x |
The unitted data.frame, vector, etc. to be accessed |
... |
Arguments passed to accessors, typically including one or more extraction indices |
name |
The name of the column to be extracted |
x[...] extracts elements with their units.
x[[...]] drops most attributes but retains units.
x$name extracts a named column, with units, from a unitted data.frame
A new data.frame, vector, etc. with the right units still attached.
unitted_assign for assignment to parts of objects;
unitted for definition of the unitted class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.