powered by
The function returns a particular fold after k-fold partitioning by kfold function.
fold(data1,k,i)
A matrix.
Number of folds
The fold to be returned
A matrix with desired fold specified.
This function is internal and used by cross validation routines.
# NOT RUN { data=matrix(rnorm(10*4),10,4) kfold(data,3) fold(data,3,2) # }
Run the code above in your browser using DataLab