fast_cor: Fast correlation calculation

fast_corR Documentation

Fast correlation calculation

Description

Fast correlation calculation

Usage

fast_cor(totu, totu2 = NULL, method = c("pearson", "spearman"))

Arguments

totu

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

totu2

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

method

"spearman" or "pearson"

Value

a list with 2 elements:

r

default: spearman correlation

p.value

default: p-value of spearman correlation

See Also

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

Examples

data("otutab", package = "pcutils")
t(otutab[1:100, ]) -> totu
fast_cor(totu, method = "spearman") -> corr

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