com_dis,matrix,ANY-method {mina} | R Documentation

## Calculate the community dissimilarity / distance matrix of the input matrix.

### Description

Calculate the community dissimilarity / distance matrix of the input matrix.

### Usage

    ## S4 method for signature 'matrix,ANY'
    com_dis(x, method = "bray", threads = 80, nblocks = 400, ...)

    ## S4 method for signature 'matrix,character'
    com_dis(x, method = "bray", threads = 80, nblocks = 400, ...)

### Arguments

`x` | A matrix of the quantitative table.
`method` | The dissimilarity / distance method used, default 'bray'.
`threads` | (optional, only needed when method == "tina") The number of threads used for parallel running.
`nblocks` | (optional, only needed when method == "tina") The number of row / column for splitted sub-matrix.
`...` | Additional parameters.

### Value

y The dissimilarity / distance matrix.

### Examples

    asv_norm <- norm_tab(maize_asv2, method = "raref", depth = 1000)
    asv_dis <- com_dis(asv_norm, method = "bray")

[Package mina version 1.2.0 Index]