Skip to contents

create folds for cross-fitting

Usage

createFolds(df, nf = 10)

Arguments

df

dataframe - used to compute nrows

nf

Number of folds

Value

list with indices for each fold in first element, and fold assignment vector in second element