Learn R Programming

COMPASS (version 1.10.2)

UniqueCombinations: 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)
"UniqueCombinations"(x, as.matrix = FALSE)
"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

Run this code
UniqueCombinations(CC)

Run the code above in your browser using DataLab