| combs {pracma} | R Documentation |
Generate Combinations
Description
Generates all combinations of length m of a vector a.
Usage
combs(a, m)
Arguments
a |
numeric vector of some length |
m |
integer with |
Details
combs generates combinations of length n of the elements
of the vector a.
Value
matrix representing combinations of the elements of a
See Also
Examples
combs(seq(2, 10, by=2), m = 3)
[Package pracma version 2.4.4 Index]