% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/divide.conquer.R
\name{folds}
\alias{folds}
\title{Generate Random Fold Indices for Cross-Validation}
\usage{
folds(n, folds = 10)
}
\arguments{
\item{n}{number of observations.}

\item{folds}{number of folds (default 10).}
}
\value{
A list of integer vectors, each containing indices for one fold.
}
\description{
Splits \code{n} observations into random folds for cross-validation.
}
