powered by
hms_to_sec(hms) sec_to_hms(sec, digits = 1, strip_zeros = FALSE)
x <- c("00:21:05", "25:51", NA, "00:26:01.1", "01:05:02.0") (x <- hms_to_sec(x)) (x <- sec_to_hms(x, strip_zeros = TRUE))
Run the code above in your browser using DataLab