Description Usage Arguments Value Examples
This function will take a value and round it. If the rounded value becomes zero, trailing zeros are added to indicate how precise the 0 value is.
1 | round_trailing_zeros(x, digits = 2)
|
x |
Numeric values to be rounded. |
Returns a character vector of rounded values including accurate zero values. Note that this rounds .5 to 1 (janitor::round_half_up) unlike base::round()
1 | # round_trailing_zeros(0.005, digits = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.