HmsToSec | R Documentation |
HmsToSec
- Converts a vector of h:m:s to seconds.
SecToHms
- Converts a vector of seconds to h:m:s.
HmsToSec(x)
SecToHms(x, digits = NULL)
x |
A vector of times in h:m:s (for |
digits |
the number of digits to use for potential fractions of seconds. |
HmsToSec
- Returns a vector of times in seconds.
SecToHms
- Returns a vector of times in h:m:s format.
Tyler Rinker <tyler.rinker@gmail.com>
times
HmsToSec(c("02:00:03", "04:03:01"))
HmsToSec(SecToHms(c(222, 1234, 55)))
SecToHms(c(256, 3456, 56565))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.