setDilutionFactors: A function for setting dilution factors.

View source: R/mrbin.R

setDilutionFactorsR Documentation

A function for setting dilution factors.

Description

This function edits the dilution factors of an mrbin object but does not change the bin data.

Usage

setDilutionFactors(
  mrbinObject,
  dilutionFactors = NULL,
  errorsAsWarnings = FALSE,
  alwaysShowOptionKeep = FALSE
)

Arguments

mrbinObject

An mrbin object

dilutionFactors

An optional vector of dilution factors. If provided, no user input is requested

errorsAsWarnings

If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data.

alwaysShowOptionKeep

If TRUE, you will be asked to keep current values even if they do not match the current dataset.

Value

An invisible mrbin object

Examples

 mrbinObject<-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=FALSE,
                   NMRfolders=c(system.file("extdata/2/10/pdata/10",package="mrbin"),
                              system.file("extdata/3/10/pdata/10",package="mrbin"))
                   ))
 mrbinObject<-setDilutionFactors(mrbinObject,dilutionFactors=c(1.5,2))

mrbin documentation built on April 11, 2023, 6:05 p.m.