powered by
Spatial discretization.
discretize(x, n, method)
A numeric vector to be discretized
A number of breaks
A character of discretization method
A vector of discretized variable of x.
x
# NOT RUN { x.disc <- discretize(x = runif(12), n = 3, method = "quantile") table(x.disc) # }
Run the code above in your browser using DataLab