discretize {IDSA} | R Documentation |
Spatial discretization.
Description
Spatial discretization.
Usage
discretize(x, n, method)
Arguments
x |
A numeric vector to be discretized |
n |
A number of breaks |
method |
A character of discretization method |
Value
A vector of discretized variable of x
.
Examples
x.disc <- discretize(x = runif(12), n = 3, method = "quantile")
table(x.disc)
[Package IDSA version 2.1 Index]