Learn R Programming

specmine (version 2.0.3)

find_corr: Find the best correlation value for the clustering of peaks

Description

Takes a dataset and calculates the optimum correlation value to perform the clustering of peaks in the identification of metabolites for NMR peaks data, which leads to the maximum number of clusters of the variables.

Usage

find_corr(dataset_orig, CMETH = "pearson", maxPeaks=40)

Arguments

dataset_orig

List representing the dataset from an nmr peaks metabolomics experiment.

CMETH

Correlation method used to cluster the variables. Defaults to "pearson".

maxPeaks

Maximum number of peaks that a cluster can have when finding the optimum correlation value.

Value

Value of the optimal correlation.