time_conversion | R Documentation |
Convenience functions for converting between time units.
to.secs(t, unit)
to.mins(t, unit)
to.hours(t, unit)
to.days(t, unit)
from.secs(t, unit)
from.mins(t, unit)
from.hours(t, unit)
from.days(t, unit)
t |
Numeric time value. |
unit |
Time unit as string. Possible values are ("seconds","minutes", "hours","days"). Units can be abbreviated. |
'to.secs()' converts time 't' with unit 'unit' to seconds.
'to.mins()' converts time 't' with unit 'unit' to minutes.
'to.hours()' converts time 't' with unit 'unit' to hours.
'to.days()' converts time 't' with unit 'unit' to days.
'from.secs()' converts time 't' in seconds to unit 'unit'.
'from.mins()' converts time 't' in minutes to unit 'unit'.
'from.hours()' converts time 't' in hours to unit 'unit'.
'from.days()' converts time 't' in days to unit 'unit'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.