get_r2: Same function as 'com_r2' with matrix and corresponding...

Description Usage Arguments Value Examples

Description

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

Usage

1

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

1
2
3
4
5
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"))

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