The R Project SVN R

Rev

Rev 68948 | Rev 88539 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 71883
Line 1... Line 1...
1
% File src/library/utils/man/combn.Rd
1
% File src/library/utils/man/combn.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2014 R Core Team
3
% Copyright 1995-2017 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{combn}
6
\name{combn}
7
\alias{combn}
7
\alias{combn}
8
\title{Generate All Combinations of n Elements, Taken m at a Time}
8
\title{Generate All Combinations of n Elements, Taken m at a Time}
Line 34... Line 34...
34
    efficiency reasons).  This will badly fail if \code{FUN(u)} is not of
34
    efficiency reasons).  This will badly fail if \code{FUN(u)} is not of
35
    constant length.}
35
    constant length.}
36
  \item{\dots}{optionally, further arguments to \code{FUN}.}
36
  \item{\dots}{optionally, further arguments to \code{FUN}.}
37
}
37
}
38
\details{
38
\details{
39
  Factors \code{x} are accepted from \R 3.1.0 (although coincidentally
39
  Factors \code{x} are accepted.
40
  they worked for \code{simplify = FALSE} in earlier versions).
-
 
41
}
40
}
42
\value{
41
\value{
43
  a \code{\link{list}} or \code{\link{array}}, see the \code{simplify}
42
  A \code{\link{list}} or \code{\link{array}}, see the \code{simplify}
44
  argument above.  In the latter case, the identity
43
  argument above.  In the latter case, the identity
45
  \code{dim(combn(n, m)) == c(m, choose(n, m))} holds.
44
  \code{dim(combn(n, m)) == c(m, choose(n, m))} holds.
46
}
45
}
47
\references{
46
\references{
48
  Nijenhuis, A. and Wilf, H.S. (1978)
47
  Nijenhuis, A. and Wilf, H.S. (1978)