R/cv.folds.R

Defines functions cv.folds

Documented in cv.folds

cv.folds <-
function(n, folds = 10)
{
	split(sample(1:n), rep(1:folds, length = n))
}

Try the lars package in your browser

Any scripts or data that you put into this service are public.

lars documentation built on April 14, 2022, 1:06 a.m.