pretty_ms {prettyunits} | R Documentation |
Pretty formatting of milliseconds
Description
Pretty formatting of milliseconds
Usage
pretty_ms(ms, compact = FALSE)
Arguments
ms |
Numeric vector of milliseconds |
compact |
If true, then only the first non-zero unit is used. See examples below. |
Value
Character vector of formatted time intervals.
See Also
Other time:
pretty_dt()
,
pretty_sec()
Examples
pretty_ms(c(1337, 13370, 133700, 1337000, 1337000000))
pretty_ms(c(1337, 13370, 133700, 1337000, 1337000000),
compact = TRUE)
[Package prettyunits version 1.2.0 Index]