Description Usage Arguments Details Value See Also
This function takes one or more unitted elements and combines them into a single unitted vector. To enforce units integrity, the function requires that all elements passed to the S3 or S4 versions of c.unitted() must have the same units, at least when recursive=FALSE. When recursive=TRUE, elements may include lists or data.frames, but the base elements (vectors, columns, etc.) of those list elements must still be unitted.
To avoid repeating code, the S3 function simply calls the S4 method.
1 2 3 4 5 |
x |
the first argument passed to |
... |
objects to be concatenated. |
recursive |
logical. If |
The S4 method for c<<unitted>> will be found first (before other c() methods) whenever the first argument is unitted.
A unitted vector
Other unitted object manipulation: unitted_bind
,
unitted_merge
, unitted_rep
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.