R/time-funcs.R
time_hms2deci.Rd
Turn string time into decimal
time_hms2deci(x, unit = "hour")
string of class lubridate::hms "HH:MM:SS"
unit to convert to
numeric vector
time <- lubridate::hms("02:33:12") time_hms2deci(time) #> [1] 2.65 time_hms2deci(time, "minute") #> [1] 159