sv_test_and_train_sets: prepares 4 datasets : train and test both in predictors and...

Description Usage Arguments Value

Description

prepares 4 datasets : train and test both in predictors and response

Usage

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"))

Arguments

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'

Value

Returns a list of 4 dataset for train and test both in predictors and response


shahryareiv/singleverbr documentation built on May 20, 2019, 6:48 p.m.