createFoldsByGroup: Intended for use with caret; creates folds based on the group...

Description Usage Arguments Examples

Description

Intended for use with caret; creates folds based on the group allocations Use in place of createFolds

Usage

1
createFoldsByGroup(group.allocation)

Arguments

group.allocation

a vector describing which group/fold each item belongs to.

Examples

1
2
createFoldsByGroup(c(1,1,1,1,2,2,2,2,3,3,3))
#create 3 folds; two with 4 members each and the third with 3 members.

bjsmith/r-mvpa documentation built on May 30, 2019, 11:53 a.m.