Learn R Programming

hilldiv (version 1.5.1)

tss: 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.

Value

Normalised vector or matrix.

Details

Total Sum Scaling normalisation

See Also

hill_div, index_div

Examples

Run this code
# NOT RUN {
data(bat.diet.otutable)
tss(bat.diet.otutable)
bat.diet.sample <- bat.diet.otutable[,1]
tss(bat.diet.sample)
# }

Run the code above in your browser using DataLab