This function edits the dilution factors of an mrbin object but does not change the bin data.
setDilutionFactors(
mrbinObject,
dilutionFactors = NULL,
errorsAsWarnings = FALSE,
alwaysShowOptionKeep = FALSE,
graphics = TRUE
)
An invisible mrbin object
An mrbin object
An optional vector of dilution factors. If provided, no user input is requested
If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data.
If TRUE, you will be asked to keep current values even if they do not match the current dataset.
Controls whether pop-up windows are shown for selections. Defaults to TRUE.
results<-mrbin(silent=TRUE,
parameters=list(verbose=TRUE,dimension="1D",PQNScaling="No",
binwidth1D=0.04,signal_to_noise1D=1,PCA="No",binRegion=c(9.5,0.5,10,156),
saveFiles="No",referenceScaling="No",noiseRemoval="No",
fixNegatives="No",logTrafo="No",noiseThreshold=.05,tryParallel=TRUE,
NMRfolders=c(system.file("extdata/2/10/pdata/10",package="mrbin"),
system.file("extdata/3/10/pdata/10",package="mrbin"))
))
results<-setDilutionFactors(results,dilutionFactors=c(1.5,2))
Run the code above in your browser using DataLab