time_hms2deci | R Documentation |
Turn string time into decimal
time_hms2deci(x, unit = "hour")
x |
string of class lubridate::hms "HH:MM:SS" |
unit |
unit to convert to |
numeric vector
time <- lubridate::hms("02:33:12")
time_hms2deci(time)
time_hms2deci(time, "minute")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.