cal_sim: Calculate similarity for one t(otutab)

cal_simR Documentation

Calculate similarity for one t(otutab)

Description

Calculate similarity for one t(otutab)

Usage

cal_sim(totu, method = "bray", norm = FALSE)

Arguments

totu

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

method

Dissimilarity index, see vegdist.

norm

hellinger normalization in features (default: FALSE).

Value

similarity = 1-distance

See Also

vegdist

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

Examples

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

MetaNet documentation built on May 29, 2024, 1:21 a.m.