Spark Online Training by Edureka

combs: Generate Combinations

Description Usage Arguments Details Value See Also Examples

Description

Generates all combinations of length m of a vector a.

Usage

1
combs(a, m)

Arguments

a

numeric vector of some length n

m

integer with 0 <= m <= n

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

perms, randcomb

Examples

1
combs(seq(2, 10, by=2), m = 3)


Search within the pracma package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.