Description Usage Arguments Value Examples
Formatter
1 2 3 4 5 6 7 8 |
x |
value to be formatted |
precision |
precision of the numeric, must be |
prefix |
prefix |
suffix |
suffix |
na.replace |
na.replace |
numeric.abbrev |
numeric.abbrev |
string
1 2 3 4 5 6 7 8 9 | formatter(NA, NA, NA, NA, "")
formatter(NA, 0, NA, NA)
formatter(123.123, 2, suffix = "%")
formatter(1231415161.2, precision = 0, suffix = " kg", numeric.abbrev = TRUE)
formatter(c(12.415, 132.141), -1, "$")
formatter(c(12.415, 132.141), 3, "$")
formatter(c("string", "string2"), na.replace = "")
formatter(213151, 2, suffix = NA)
formatter(c(NA, 2), 2, "", "%", na.replace = "")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.