Description Usage Arguments Value
prepares 4 datasets : train and test both in predictors and response
1 2 3 | sv_test_and_train_sets(data.df, response.name, the.train.ratio = 0.75,
pred.vars.handling = c("number", "dummify"),
resp.vars.handling = c("2num"))
|
data.df |
input data |
response.name |
the name of the column which is the response |
the.train.ratio |
the percent of train data to the whole data (the rest for test) |
pred.vars.handling |
how to handle predictor variables. It can be 'number' or 'dummify' |
resp.vars.handling |
how to handle response variables. It can be 'number' or 'dummify' |
Returns a list of 4 dataset for train and test both in predictors and response
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.