round_levels | R Documentation |
Round a vector (of levels).
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.
## 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.