removeSpectrum {mrbin} | R 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,
graphics = TRUE
)
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. |
graphics |
Controls whether pop-up windows are shown for selections. Defaults to TRUE. |
Value
An invisible mrbin object (only if an mrbin object was provided)
Examples
resetEnv()#clean up previous data from the package environment
results<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",
binwidth1D=0.05,PQNScaling="No",PCA="No",logTrafo="No",
noiseRemoval="No",NMRvendor="mrbin",
example=TRUE,#only used for the package examples
NMRfolders=c(system.file("extdata/1.mr1",package="mrbin"),
system.file("extdata/2.mr1",package="mrbin"),
system.file("extdata/3.mr1",package="mrbin"))))
results<-removeSpectrum(results,
spectra=c(system.file("extdata/2.mr1",package="mrbin")))
[Package mrbin version 1.9.4 Index]