kfold: Create K-fold Train and Test Sets

Description Usage Arguments Value

Description

Based on the function from the modelr package

Usage

1
kfold(data, k = 5, id = ".id")

Arguments

data

A matrix or dataframe

k

An integer: The number of folds.

id

Value

A list of tibbles with train and test columns.


nateaff/legolda documentation built on May 18, 2019, 10:15 a.m.