fast_cor | R Documentation |
Fast correlation calculation
fast_cor(totu, totu2 = NULL, method = c("pearson", "spearman"))
totu |
t(otutab), row are samples, column are features. |
totu2 |
t(otutab) or NULL, row are samples, column are features. |
method |
"spearman" or "pearson" |
a list with 2 elements:
r |
default: spearman correlation |
p.value |
default: p-value of spearman correlation |
Other calculate:
c_net_calculate()
,
cal_sim()
,
input_corr()
,
p.adjust.table()
data("otutab", package = "pcutils")
t(otutab[1:100, ]) -> totu
fast_cor(totu, method = "spearman") -> corr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.