sepFlag {FLR} | R Documentation |
Randomly flags instances in order to be used as training(0) or testing(1) data with the ratio depending on variable gg.
sepFlag(gg,data1)
gg |
percentage of instances to be used as training data for the classification. |
data1 |
an input data.frame where last instance must be the class instance and be named 'class'. |
return original data with a flag column added at the end.