norm_tab,matrix,character-method {mina} | R Documentation

## Normalize the quantitative matrix.

### Description

Normalize the quantitative matrix.

### Usage

    ## 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

    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)

[Package mina version 1.2.0 Index]