Rdocumentation
powered by
Learn R Programming
mdatools (version 0.5.3)
crossval: Generate sequence of indices for cross-validation
Description
Generates and returns sequence of object indices for each segment in random segmented cross-validation
Usage
crossval(nobj, nseg = NULL)
Arguments
nobj
number of objects in a dataset
nseg
number of segments to split the data to
Value
matrix with object indices for each segment