Comma and Significance Formatter
By default the numeric vectors are first rounded to three significant figures. Then scales::commas is only applied to values greater than or equal to 1000 to ensure that labels are permitted to have different numbers of decimal places.
comma_signif(x, digits = 3, ...)
x |
A numeric vector to format. |
digits |
A whole number specifying the number of significant figures |
... |
Additional arguments passed to scales::comma. |
A character vector.
comma_signif(c(0.1, 1, 10, 1000)) scales::comma(c(0.1, 1, 10, 1000))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.