| tss | R Documentation |
Normalise a numeric vector or count matrix so that each sample (column) sums
to one. Columns that sum to zero are returned as all-zero (the 0/0 = NaN
case is mapped to 0).
tss(abund)
abund |
A numeric vector or a matrix/data.frame of counts with taxa (OTUs/ASVs/MAGs) in rows and samples in columns. |
A normalised object of the same shape as abund (vector in, vector
out; matrix/data.frame in, matrix out).
tss(c(a = 1, b = 3))
tss(matrix(c(1, 0, 3, 0, 0, 2), nrow = 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.