sepFlag: Flags Instances

Description Usage Arguments Value

View source: R/FLR.r

Description

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

Usage

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


FLR documentation built on May 2, 2019, 3:43 p.m.

Related to sepFlag in FLR...