unitConversion | R Documentation |
Manipulate the units of time to different ones
unitConversion(x, from.unit, to.unit)
x |
A |
from.unit |
A |
to.unit |
A |
The supported units are "ns"(nanosecond), "ms"(millisecond), "sec", "min", "hour", "day", "month", and "year".
Make sure from.unit
and to.unit
are not NULL
before it is passed to this function.
A list
with the following structure:
Data
A boolean
indicating whether conversion is made
x = seq(60, 3600, 60)
unitConversion(x, 'sec', 'min')
y = 1:10
unitConversion(y, 'hour', 'sec')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.