Description Usage Arguments Details Value
if udunits2 package is available, this is used. Otherwise my own functions.
1 2 | convertUnits(x, from, to, inconvertibles = c("preserve", "omit"),
use.ud = FALSE)
|
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.