Learn R Programming

MetaNet (version 0.2.5)

cal_sim: Calculate similarity for one t(otutab)

Description

Calculate similarity for one t(otutab)

Usage

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

Value

similarity = 1-distance

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.

See Also

vegdist

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

Examples

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

Run the code above in your browser using DataLab