get_r2 {mina} | R Documentation

## Same function as 'com_r2' with matrix and corresponding descriptive table as input.

### Description

Same function as 'com_r2' with matrix and corresponding descriptive table as input.

### Usage

    get_r2(x, des, group)

### Arguments

`x` | Dissimilarity / distance matrix which indicate variances.
`des` | The descriptive table of samples which define the groups.
`group` | The name(s) of column(s) used as experimental setup group(s) in descriptive file.

### Value

r2 The variance ratio cannot be explained by given groups.

### Examples

    maize <- new("mina", tab = maize_asv2, des = maize_des2)
    maize <- norm_tab(maize, method = "raref")
    maize <- fit_tabs(maize)
    maize <- com_dis(maize, method = "bray")
    get_r2(dis(maize), des(maize), group = c("Compartment", "Soil"))

[Package mina version 1.2.0 Index]