Created
April 11, 2016 21:20
-
-
Save shaheeng/bc17b7d5ebf353ef04d74ec08e1b087f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#collect names of columns (features) to be used for modelling | |
allfeatures = setdiff(names(data_classi),c('LabelsCol','splitcol')) | |
#create formula for modelling | |
formula = as.formula(paste('LabelsCol',paste(allfeatures,collapse=' + '),sep=' ~ ')) | |
formula |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment