roundX | R Documentation |
special rounding
roundX(x, roundto = 0)
x |
numeric vector |
roundto |
numeric of length 1, round to nearest ... |
numeric vector of the same length as x
x <- runif(20, 0, 1) plot(roundX(x, 0.2), x) x <- rnorm(100, 0, 1) plot(roundX(x, 0.5), x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.