powered by
Performs correlations test to the whole dataset.
correlations_test(dataset, method = "pearson", by.var = TRUE, alternative = "two.sided")
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.
alternative argument from cor.test of stats package. Can be "two.sided", "less" or "greater".
Returns a matrix with the correlation values and the p-values
# NOT RUN { ## Example of correlations test of variables library(specmine.datasets) data(cachexia) corr.result = correlations_test(cachexia, method = "pearson", by.var = FALSE) # }
Run the code above in your browser using DataLab