Description Usage Arguments Value Examples
View source: R/format_seconds_as_duration.R
Format Seconds Nicely
1 | seconds_as_duration(x, format = "%02d:%02d:%02d")
|
x |
Vector of seconds (durations). Numeric or coercible to numeric |
format |
for consumption by sprintf |
a vector of characters
1 2 3 | seconds_as_duration(c(100,200,3024, 16254))
seconds_as_duration(c(100,200,3024, 16254), format=NULL)
seconds_as_duration(c(100,200,3024, 16254), format='%02dh%02dm%02ds')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.