Learn R Programming

specmine (version 3.1.6)

sum_2d_dataset: 2D Dataset summary

Description

Returns a summary with its main features

Usage

sum_2d_dataset(dataset_2d, stats = TRUE)

Arguments

dataset_2d

List representing the 2D dataset from a 2D metabolomics experiment.

stats

If TRUE prints some global statistics for each 2D spectra.

Value

Returns the summary of the 2D dataset containing:

  • Description

  • Type of data

  • Number of samples

  • Number of data points

  • Number of metadata variables if metadata not null

  • Labels of x axis, y axis and pair'(x,y) values if labels not null

If the parameter 'stats' is TRUE then returns also:

  • Number of missing values in each spectra

  • Mean of data values in each spectra

  • Median of data values in each spectra

  • Standard deviation in each spectra

  • Range of values in each spectra

  • Quantiles for each spectra