check-scalar-hasUniqueCols: Does the input have columns with unique values?

check-scalar-hasUniqueColsR Documentation

Does the input have columns with unique values?

Description

Checks a matrix for duplicated columns, which reprent samples. Duplicate rows are allowed here, because many genes (rows) can contain all zeros.

Usage

hasUniqueCols(x)

Arguments

x

Object.

Value

TRUE on success; FALSE on failure, with cause set.

SummarizedExperiment

If the object is a SummarizedExperiment, then the primary assay matrix is checked for duplicated columns.

Note

Updated 2019-08-10.

Examples

## TRUE ====
x <- matrix(data = seq_len(20L), ncol = 2L)
hasUniqueCols(x)

## FALSE ====
x <- matrix(data = rep(seq_len(10L), times = 2L), ncol = 2L)
hasUniqueCols(x)

acidgenomics/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.