This function lets the user pick spectra from a list for removal from data analysis.
removeSpectrum(
mrbinResults = NULL,
spectra = NULL,
verbose = TRUE,
errorsAsWarnings = FALSE,
graphics = TRUE
)
An invisible mrbin object (only if an mrbin object was provided)
An mrbin object. If not provided, the function works on the package environment
Character vector with NMR folder names to be excluded. If provided, no interactive selection will be shown
Should a summary be printed?
If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data.
Controls whether pop-up windows are shown for selections. Defaults to TRUE.
results<-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"))))
results<-removeSpectrum(results,
spectra=c(system.file("extdata/2/10/pdata/10",package="mrbin")))
Run the code above in your browser using DataLab