Description Usage Arguments Value Examples
This tool computes the minimum number of digits required for a vector of times. The defaults of the tool assumes your time is rounded to within the quarter hour.
1 | time_digits(x, ...)
|
x |
A numeric vector of times rounded tot he nearest quarter hour. |
... |
ignored |
Returns integer 0-2
1 2 3 4 5 6 7 8 9 10 11 | time_digits(c(.5, .25, 6))
time_digits(c(.5, 3.5, 6))
time_digits(c(5, 25, 6))
x <- c(.5, .25, 6)
numform::f_pad_left(numform::f_num(x, digits = numform::time_digits(x)))
lapply(
list(quarter = c(.5, .25, 6), half = c(.5, 3.5, 6), hour = c(5, 25, 6)),
function(x) {numform::f_pad_left(numform::f_num(x, digits = numform::time_digits(x)))}
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.