Kcross: Produces indexes to split data into test and training groups...

Description Usage Arguments Details

Description

Index to randomly split data frame into groups, optionally stratified by a grouping variable.

Usage

1
Kcross(DF, K = 10, Strat = NULL)

Arguments

DF

name of a data frame which is to be split

K

number of 'folds' to split the data into

Strat

name of index of grouping variable in data frame

Details

Kcross(DF, K = 10, Strat = NULL)

returns a list of lists where each of the sublists consist of two objects, 'train' and 'test' which contain indexes to be used to choose rows of the data frame.


helophilus/ColsTools documentation built on May 30, 2019, 4:03 p.m.