Description Usage Arguments Details Value
find nonzero entries in a sparse (dgcMatrix) matrix
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | nonzero(x, agg = NA)
nz(x)
nz_rows(x)
nz_rownames(x)
nz_byrow(x)
nz_cols(x)
nz_colnames(x)
nz_bycol(x)
|
x |
the matrix |
nz
is borrowed from the DAPAR package and is the base function.
nz_rownames
returns the rownames for nonzero rows of x
.
nz_rows
just wraps unique(x@i) for a dgCMatrix x
.
nz_colnames
returns the colnames for nonzero columns of x
.
nz_cols
finds nonzero columns of a dgCMatrix x
.
nonzero
retains additional information about x
alongside nz
.
These are handy for (e.g.) computing TPMs and the like in 3'/5' data.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.