\HeaderA{Kfold}{for given n, generate a K-fold partition of 1:n}{Kfold}
\keyword{models}{Kfold}
\begin{Description}\relax
for given n, generate a K-fold partition of 1:n
\end{Description}
\begin{Usage}
\begin{verbatim}
Kfold(n, K=5)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{n}] number of elements to be partitioned 
\item[\code{K}] number of partitions
\end{ldescription}
\end{Arguments}
\begin{Value}
a vector of length n with elements 1:K, as balanced as possible, sorted
increasing
\end{Value}
\begin{Author}\relax
Vince Carey <stvjc@channing.harvard.edu>
\end{Author}
\begin{Examples}
\begin{ExampleCode}
Kfold(23)
\end{ExampleCode}
\end{Examples}

