check-scalar-hasUniqueCols | R Documentation |
Checks a matrix for duplicated columns, which reprent samples. Duplicate rows are allowed here, because many genes (rows) can contain all zeros.
hasUniqueCols(x)
x |
Object. |
TRUE
on success;
FALSE
on failure, with cause set.
If the object is a SummarizedExperiment
, then the primary
assay matrix is checked for duplicated
columns.
Updated 2019-08-10.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.