removeSpectrum: A function for removing a spectrum.

View source: R/mrbin.R

removeSpectrumR Documentation

A function for removing a spectrum.

Description

This function lets the user pick spectra from a list for removal from data analysis.

Usage

removeSpectrum(
  mrbinResults = NULL,
  spectra = NULL,
  verbose = TRUE,
  errorsAsWarnings = FALSE
)

Arguments

mrbinResults

An mrbin object. If not provided, the function works on the package environment

spectra

Character vector with NMR folder names to be excluded. If provided, no interactive selection will be shown

verbose

Should a summary be printed?

errorsAsWarnings

If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data.

Value

An invisible mrbin object (only if an mrbin object was provided)

Examples

mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",
         binwidth1D=0.05,PQNScaling="No",PCA="No",tryParallel=TRUE,logTrafo="No",
         noiseRemoval="No",
         NMRfolders=c(system.file("extdata/1/10/pdata/10",package="mrbin"),
                      system.file("extdata/2/10/pdata/10",package="mrbin"),
                      system.file("extdata/3/10/pdata/10",package="mrbin"))))
mrbinResults<-removeSpectrum(mrbinResults,
 spectra=c(system.file("extdata/2/10/pdata/10",package="mrbin")))

mrbin documentation built on June 22, 2024, 9:39 a.m.