Calculate similarity for one t(otutab)

cal_sim(totu, totu2 = NULL, method = "bray")

Arguments

totu

t(otutab), row are samples, column are features.

totu2

t(otutab) or NULL, row are samples, column are features.

method

Dissimilarity index, see vegdist.

Value

similarity = 1-distance

See also

vegdist

Other calculate: c_net_calculate(), fast_cor(), p.adjust.table(), read_corr()

Examples

if (requireNamespace("vegan")) {
  data("otutab", package = "pcutils")
  t(otutab) -> totu
  cal_sim(totu) -> sim_corr
}
#> Loading required namespace: vegan