splitup: Split Up

Description Usage Arguments Value

View source: R/ownFunctions.R

Description

Split a data frame for cross-validation

Usage

1
splitup(df, k)

Arguments

df

A data frame.

k

The number of groups/sets to split the data frame into.

Value

The data frame, with an added column grp containing group assignments.


kaijagahm/kgUtils documentation built on Feb. 17, 2021, 7:33 a.m.