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

## Calculate the community dissimilarity / distance matrix of 'norm' with 'mina' class object as input.

### Description

Calculate the community dissimilarity / distance matrix of 'norm' with 'mina' class object as input.

### Usage

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

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

### Arguments

`x` | An object of the class 'mina' with 'norm' defined.
`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

x The same 'mina' object with @dis added.

### Examples

    maize <- new("mina", tab = maize_asv2, des = maize_des2)
    maize <- norm_tab(maize, method = "total")
    maize <- fit_tabs(maize)
    maize <- com_dis(maize, method = "bray")

[Package mina version 1.2.0 Index]