Description Usage Arguments Value Examples
Format numbers with significant digits and a metric suffix ("k", "M", etc.)
1 | format_metric(x, digits = 2)
|
x |
numeric vector |
digits |
number of significant digits |
character vector
1 2 | x <- c(8.8e-3, 12.4e-6, 1704.1, 43.5e6, 10, NaN, NA, Inf, 0.00)
format_metric(x, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.