correlations_dataset: Dataset correlations

Description Usage Arguments Value Examples

View source: R/univariate.R

Description

Calculate the correlations of all variables or samples in the dataset.

Usage

1
correlations_dataset(dataset, method = "pearson", by.var = TRUE)

Arguments

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.

Value

Returns the correlation matrix

Examples

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)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.