View source: R/decimal_minute_to_string.R
decimal_minute_to_string | R Documentation |
"HH:MM:SS"
or
"MM:SS"
string.Function to transform decimal minutes into a formatted "HH:MM:SS"
or
"MM:SS"
string.
decimal_minute_to_string(x, hour = TRUE)
x |
Numeric vector of decimal minutes. |
hour |
Should the hour also be included in the formatted string? |
Stuart K. Grange
decimal_minute_to_string(5)
decimal_minute_to_string(5.5)
decimal_minute_to_string(5.34)
decimal_minute_to_string(5.954226)
# Without the hour piece
decimal_minute_to_string(5.954226, hour = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.