tss {hilldiv} | R Documentation |
Total Sum Scaling normalisation
Description
Normalise a vector or count matrix to the range of 0-1.
Usage
tss(abund)
Arguments
abund |
A vector or a matrix/data.frame indicating the relative abundances of one or multiple samples, respectively. If a matrix/data.frame is provided, columns must refer to samples and rows to OTUs. |
Details
Total Sum Scaling normalisation
Value
Normalised vector or matrix.
Author(s)
Antton Alberdi, anttonalberdi@gmail.com
See Also
Examples
data(bat.diet.otutable)
tss(bat.diet.otutable)
bat.diet.sample <- bat.diet.otutable[,1]
tss(bat.diet.sample)
[Package hilldiv version 1.5.1 Index]