Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Combinations

Combinations


Description

Computes all possible combinations of n objects taken k at a time.

Usage

Combinations(n, k)

Arguments

n

a number.

k

a number less than or equal to n.

Value

Returns a matrix containing the possible combinations of n objects taken k at a time.

See Also

Examples

Combinations(5,2)
    # The columns in the matrix list the values of the 10 possible
    # combinations of 5 things taken 2 at a time.

BSDA

Basic Statistics and Data Analysis

v1.2.0
GPL (>= 2)
Authors
Alan T. Arnholt [aut, cre], Ben Evans [aut]
Initial release
2017-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.