powered by
The function partitions a data set into k folds of equal sizes at random.
kfold(data1,k)
A matrix.
Number of folds
A matrix with fold identification in first column.
This function is internal and used by cross validation routines.
# NOT RUN { data=matrix(rnorm(10*4),10,4) kfold(data,3) # }
Run the code above in your browser using DataLab