Learn R Programming

ArArRedux (version 1.0)

blankcorr: Apply a blank correction

Description

Applies a blank correction to some time-resolved mass spectrometer data

Usage

blankcorr(x, ...)

# S3 method for default blankcorr(x, ...)

# S3 method for timeresolved blankcorr(x, blanklabel = NULL, prefix = "", ...)

# S3 method for PHdata blankcorr(x, blanklabel = NULL, prefix = "", ...)

Arguments

x

an object of class timeresolved or PHdata

...

other arguments

blanklabel

as string denoting the prefix of the blanks

prefix

a string to be prepended to the non-blanks

Value

an object of class blankcorrected

Examples

Run this code
# NOT RUN {
samplefile <- system.file("Samples.csv",package="ArArRedux")
masses <- c("Ar37","Ar38","Ar39","Ar40","Ar36")
m <- loaddata(samplefile,masses) # samples and J-standards
blanklabel <- "EXB#"
l <- fitlogratios(blankcorr(m,blanklabel),"Ar40")
plotcorr(l)
# }

Run the code above in your browser using DataLab