Learn R Programming

COMPASS (version 1.10.2)

Combinations: Generate Combinations

Description

Given an intenger n, generate all binary combinations of n elements, transformed to indices. This is primarily for use with the CellCounts function, but may be useful for users in some scenarios.

Usage

Combinations(n)

Arguments

n
An integer.

Examples

Run this code
Combinations(3)

Run the code above in your browser using DataLab