time_alter | R Documentation |
Turn strings of H:M to time
time_alter(x, unit = "minute", time_func = lubridate::hm)
x |
string of class lubridate::hms "HH:MM:SS" |
unit |
unit to convert to |
time_func |
a function to convert x to a lubridate time vector. Default is lubridate::hms |
time <- c("02:33")
time_alter(time)
time_alter(time, "minute")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.