tss: Total Sum Scaling normalisation

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/tss.R

Description

Normalise a vector or count matrix to the range of 0-1.

Usage

1
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

hill_div, index_div

Examples

1
2
3
4
data(bat.diet.otutable)
tss(bat.diet.otutable)
bat.diet.sample <- bat.diet.otutable[,1]
tss(bat.diet.sample)

anttonalberdi/hilldiv documentation built on Feb. 14, 2021, 5:08 p.m.