Description Usage Arguments Details Value
Wrapper for ud.convert that accepts vector inputs and multiple conversion candidates.
| 1 | convertUnits(x, from, to, inconvertibles = c("preserve", "omit"))
 | 
| x | Numeric vector of values | 
| from | Units of x values | 
| to | Units to convert to. | 
| inconvertibles | Should units that cannot be converted be preserved or omitted from the result? | 
If length(to) > 0, units the first is tried first, followed by the second, etc. If units in from are already contained in to, these units are not converted.
A data.frame with columns x and units
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.