Description Usage Arguments Value
View source: R/calculate_correlations.R
This function computes the correlation matrices for two groups given a data set (e.g., an expression matrix.) This function uses the 'corrr' package to compute the correlations.
1 | calculate_correlations(data, group1, group2, method)
|
data |
The data matrix, with samples on columns and observations on rows |
group1 |
column ids for group 1 |
group2 |
column ids for group 2 |
method |
correlation type (defaults to Spearman correlations.) |
returns a 'tibble' with the correlations between all the vartiables for both groups. x and y in data frame are row ids that can be easily mapped to variable names in data set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.