Discretize | R Documentation |
Discretize variable on demand
Discretize(data, variable.idx, divisions, discretization.nr, seed, range)
data |
input data where columns are variables and rows are observations (all numeric) |
variable.idx |
variable index (as it appears in |
divisions |
number of divisions |
discretization.nr |
discretization number (positive integer) |
seed |
seed for PRNG |
range |
discretization range |
Discretized variable.
Discretize(madelon$data, 3, 1, 1, 0, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.