ch.round_any | R Documentation |
This function rounds numbers to a specified precision to in a particular direction.
ch.round_any(x, accuracy, f = ceiling, center = TRUE)
x |
a vector of numbers. |
accuracy |
the accuracy of the rounding. |
f |
the function for rounding: floor, ceiling, round. DEFAULT = ceiling |
center |
a boolean specifying whether to center the bin label in the ceiling and floor cases. DEFAULT = TRUE |
ch.round_any (x, .1, ceiling)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.