cal_sim {MetaNet} | R 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 |
norm |
hellinger normalization in features (default: FALSE). |
Value
similarity = 1-distance
See Also
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
}
[Package MetaNet version 0.1.2 Index]