Description Usage Arguments Value Examples
Spatial discretization.
1 | discretize(x, n, method)
|
x |
A numeric vector to be discretized |
n |
A number of breaks |
method |
A character of discretization method |
A vector of discretized variable of x
.
1 2 | x.disc <- discretize(x = runif(12), n = 3, method = "quantile")
table(x.disc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.