View source: R/helper_function.R
compute_cor | R Documentation |
This function computes either the pearson or spearman correlation coefficient.
compute_cor(data_group_1, data_group_2, type_of_cor)
data_group_1 |
This is a n*p matrix. |
data_group_2 |
This is a n*p matrix. |
type_of_cor |
If this is NULL, pearson correlation coefficient will be calculated as default. Otherwise, a character string "spearman" will calculate the spearman correlation coefficient. |
A list of correlation matrices for both group 1 and group 2.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.