\Header{nchoosek}{List all subsets of size k from n objects}
\keyword{math}{nchoosek}
\begin{Description}\relax
List all subsets of size k from n objects
\end{Description}
\begin{Usage}
\begin{verbatim}nchoosek(n, k)\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{n}] Integer
\item[\code{k}] Integer
\end{ldescription}
\end{Arguments}
\begin{Value}
A matrix with k rows and as many columns as there are distinct
subsets. Each column contains integers between 1 and n, and represents a
subset.
\end{Value}
\begin{SeeAlso}\relax
\code{\Link{choose}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
nchoosek(5,3)
\end{ExampleCode}
\end{Examples}

