View source: R/discretizeData_model.R
discretizeData_model | R Documentation |
This function discretizes all numerical variables into Kmax categories based on the splits used by the model for each variable.
discretizeData_model(data, conditions, Kmax = 2, return_split = FALSE)
data |
data to discretize |
conditions |
character vector with all conditions from which to find the thresholds |
Kmax |
numeric, maximal number of categories for each variable (default: Kmax = 2). |
return_split |
if TRUE, then the table with thresholds used to discretize data is also returned. |
Data with discretized variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.