UniqueCombinations {COMPASS} | R Documentation

## Generate Unique Combinations

### Description

Generate all possible unique combinations of `x`. Primarily used as a helper function for `CellCounts`, but may be occasionally useful to the end user.

### Usage

    UniqueCombinations(x, as.matrix)

    ## S3 method for class 'COMPASSContainer'
    UniqueCombinations(x, as.matrix = FALSE)

    ## Default S3 method:
    UniqueCombinations(x, as.matrix = FALSE)

### Arguments

`x` | Either a `COMPASSContainer`, or a list of matrices.
`as.matrix` | Boolean; if `TRUE` we return results as a matrix; otherwise, we return the results as a list.

### Examples

    UniqueCombinations(CC)

[Package COMPASS version 1.16.2 Index]