Description Usage Arguments Value
View source: R/sample_data_functions.r
This function is a wrapper for 'categorize()', which place continuous values into classes and return factor columns. To add columns which are already factor columns as response variables use 'cbind()' or 'merge()' after this step.
1 | categorize_response_variable(ML_mode, response_data, ...)
|
ML_mode |
How many classes should be generated? 'classification' or 'regression' are valid, 'regression' returns unmodified response_data |
response_data |
a data frame where the columns are the continuous response variables |
... |
arguments passed on to 'categorize()' |
A data frame with factor columns containing the categorized response variables or for 'regression' the unmodified data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.