Description Usage Arguments Value Examples
Calculate the correlations of all variables or samples in the dataset.
1 | correlations_dataset(dataset, method = "pearson", by.var = TRUE)
|
dataset |
list representing the dataset from a metabolomics experiment. |
method |
correlation method, it can be "pearson", "kendall" or "spearman". |
by.var |
if TRUE then the correlations of the variables will be calculated, if not then the correlations of the samples will be calculated. |
Returns the correlation matrix
1 2 3 4 5 | ## Example of correlations of variables
library(specmine.datasets)
data(cachexia)
corr.result = correlations_dataset(cachexia,
method = "pearson", by.var = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.