Learn R Programming

mrbin (version 1.9.1)

removeNoise: A function for removing bins below noise level.

Description

This function checks for each bin (column) whether its level is below the individual noise level times the signal-to-noise ratio. If less than the defined threshold level are above noise*SNR, the whole bin is removed.

Usage

removeNoise(mrbinResults, verbose = TRUE, errorsAsWarnings = FALSE)

Value

An invisible mrbin object

Arguments

mrbinResults

An mrbin object

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.

Examples

Run this code
results<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",
                    binwidth1D=0.05,noiseRemoval="No",PQNScaling="No",tryParallel=TRUE,
                    fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE,
                    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<-removeNoise(results)

Run the code above in your browser using DataLab