powered by
fold(data1,k,i)
data=matrix(rnorm(10*4),10,4) kfold(data,3) fold(data,3,2)
Run the code above in your browser using DataLab