convert_time {cycleRtools} | R Documentation |
Functions perform interconversion between "HH:MM:SS" format and seconds.
convert_from_time(x) convert_to_time(x)
x |
either a character string of the form "HH:MM:SS" ("HH" is optional) or numeric seconds values. |
seconds value(s) for from, and "HH:MM:SS" character string(s) for to.
x <- c("00:21:05", "25:51", NA, "00:26:01.1", "01:05:02.0") x <- convert_from_time(x) print(x) x <- convert_to_time(x) print(x)