uniTab | R Documentation |
Combine duplicate rows of a table of counts
uniTab(tab, omitNullRows = TRUE)
tab |
matrix or table of counts. Rows correspond to lineages and columns to cell types. |
omitNullRows |
logical, if |
When a table of counts has many duplicate rows, computations are sometimes faster if duplicate rows are combined and a vector of case weights is created.
list
with elements tab
- the rows of
unique(tab)
,
n
- a vector of replicate row
counts,
data.index
- a mapping of the rows to the
tab
argument to those of uniTab(tab)[["tab"]]
,
and
omitted
- NULL
if no rows were omitted, or
an object such that inverse.rle(result$omitted)
is a
logical vector indicating which table rows were all zeros.
Charles Berry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.