Learn R Programming

specmine (version 3.0.2)

background_correction: Background correction

Description

Perform background correction on the spectra.

Usage

background_correction(dataset)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

Value

Returns the dataset with background correction performed on the data.

Examples

Run this code
# NOT RUN {
  ## Example of background correction
  library(hyperSpec)
  data(flu)
  flu.converted = convert_from_hyperspec(flu)
  flu.corrected = background_correction(flu.converted)
# }

Run the code above in your browser using DataLab