Turn strings of H:M to time
time_alter(x, unit = "minute", time_func = lubridate::hm)
string of class lubridate::hms "HH:MM:SS"
unit to convert to
a function to convert x to a lubridate time vector. Default is lubridate::hms
time <- c("02:33")
time_alter(time)
#> [1] 153
time_alter(time, "minute")
#> [1] 153