Combinations {COMPASS} | R Documentation

## 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

    Combinations(3)

[Package COMPASS version 1.18.1 Index]