Description Usage Arguments Value Note Examples
Round a vector (of levels).
1 | round_levels(x)
|
x |
Numeric vector to be rounded. |
Rounded numeric vector.
At the time, this function can produce poor results
when the relative variation in x
is small.
1 2 3 4 5 | ## good
round_levels((1:3) / 10^5)
round_levels( 10 + (1:3) / 10^5)
## bad
round_levels( 10 + (1:3) / 10^6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.