fold | R Documentation |
The function returns a particular fold after k-fold partitioning by kfold function.
fold(data1,k,i)
data1 |
A matrix. |
k |
Number of folds |
i |
The fold to be returned |
This function is internal and used by cross validation routines.
A matrix with desired fold specified.
B N Mandal and Jun Ma
data=matrix(rnorm(10*4),10,4) kfold(data,3) fold(data,3,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.