decimalTime | R Documentation |
Convert hh:mm:ss time to hh.hhh
decimalTime(input, unit = c("h", "m", "s"))
input |
Single string or a vector of strings containing hours:minutes or hours:minutes:seconds. |
unit |
the desired units of the output, one of "h" (hours), "m", (minutes) or "s" (seconds). |
A number or vector of numbers corresponding to the decimal hour equivalent of the character input.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.