sepFlag {FLR}R Documentation

Flags Instances

Description

Randomly flags instances in order to be used as training(0) or testing(1) data with the ratio depending on variable gg.

Usage

  sepFlag(gg,data1)

Arguments

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'.

Value

return original data with a flag column added at the end.


[Package FLR version 1.0 Index]