powered by
Calculate the correlations of all variables or samples in the dataset.
correlations_dataset(dataset, method = "pearson", by.var = TRUE)
list representing the dataset from a metabolomics experiment.
correlation method, it can be "pearson", "kendall" or "spearman".
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
# NOT RUN { ## Example of correlations of variables library(specmine.datasets) data(cachexia) corr.result = correlations_dataset(cachexia, method = "pearson", by.var = TRUE) # }
Run the code above in your browser using DataLab