Description Usage Arguments Details Value Note
Assemble train and test data for model building with EWStools
1 2 |
data |
a dataframe that the user would like to split into training and sample sets |
class |
character value of the name of the dependent variable |
p |
the proportion of data to be placed into a training set |
predvars |
a character vector of the names of predictor variables |
classification |
Is the training set for a classification problem or not? Default is TRUE. |
keepNA |
Should missing values be preserved in the data sets? Logical. Default is FALSE. |
... |
additional arguments to be passed to assembleData |
To return a 3-way split with a validation set, use the pvalid
argument.If classification is set to true the "class" component of the list will be forced to a factor
for being fed into the train routine.
A list of lists with the following items:
a list with a dataframe of the predictor matrix called preds, and the class called class
a list with a dataframe of the predictor matrix called preds, and the class called class
Built on the createDataPartition
function in the caret
package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.