norm_tab-matrix: Normalize the quantitative matrix.

Description Usage Arguments Value Examples

Description

Normalize the quantitative matrix.

Usage

1
2
## S4 method for signature 'matrix,character'
norm_tab(x, method, depth = 1000, replace = TRUE, multi = 1, ...)

Arguments

x

A quantitative matrix with samples in columns and compositions in rows.

method

The method used for normalization.

depth

The depth for rarefying, 1000 by default.

replace

Whether to sample with replacement (TRUE by default) or without replacement (FALSE) when using method 'raref'.

multi

Rarefy the table for multiple times, 1 by default, indicate the times of rarefaction want to be repeated, only validate for rarefaction.

...

Additional parameters.

Value

The normalized quantitative matrix.

x_norm Normalized matrix of the quantitative table.

Examples

1
2
3
4
data(maize_asv2)
maize_asv_norm <- norm_tab(maize_asv2, method = "total")
maize_asv_norm <- norm_tab(maize_asv2, method = "raref", depth = 1000,
replace = TRUE, multi = 3)

Guan06/mina documentation built on Feb. 21, 2022, 11:56 a.m.