swh:1:snp:1d6f9c912933e835b749aef1f8077112982fe84e
Raw File
Tip revision: c7b20449f057481c4a6908b43e23cbe9884eb57b authored by Hans W. Borchers on 14 January 2014, 00:00:00 UTC
version 1.6.1
Tip revision: c7b2044
combs.Rd
\name{combs}
\alias{combs}
\title{
Generate Combinations
}
\description{
Generates all combinations of length \code{m} of a vector \code{a}.
}
\usage{
combs(a, m)
}
\arguments{
  \item{a}{numeric vector of some length \code{n}}
  \item{m}{integer with \code{0 <= m <= n}}
}
\details{
  \code{combs} generates combinations of length \code{n} of the elements
  of the vector \code{a}.
}
\value{
  matrix representing combinations of the elements of \code{a}
}
\seealso{
\code{\link{perms}}, \code{\link{randcomb}}
}
\examples{
combs(seq(2, 10, by=2), m = 3)
}
\keyword{ arith }
back to top