dilutionCorrection {mrbin} | R Documentation |
A function for scaling to individual dilution factors.
Description
This function performs sample-wise scaling of binned data to correct for dilution through different sample volumes used, or for different sample weights. All bin values of one sample are multiplied by the corresponding dilution factor.
Usage
dilutionCorrection(mrbinResults, verbose = TRUE, errorsAsWarnings = FALSE)
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. |
Value
An invisible mrbin object containing scaled NMR data.
Examples
mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",
binwidth1D=0.05,PQNScaling="No",PCA="No",tryParallel=TRUE,logTrafo="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"))),
metadata=list(dilutionFactors=c(.75,1,.5)))
mrbinResults<-dilutionCorrection(mrbinResults)
[Package mrbin version 1.7.5 Index]