convert_time: Reformat time.

Description Usage Arguments Value Examples

Description

Functions perform interconversion between "HH:MM:SS" format and seconds.

Usage

1
2
3

Arguments

x

either a character string of the form "HH:MM:SS" ("HH" is optional) or numeric seconds values.

Value

seconds value(s) for from, and "HH:MM:SS" character string(s) for to.

Examples

1
2
3
4
5
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)

cycleRtools documentation built on May 2, 2019, 10:51 a.m.