peakBinner: Peak List Binner

Description Usage Arguments Value Examples

Description

Peak List Binner

Usage

1
peakBinner(massStart, massEnd, ppm, massList, intensityList)

Arguments

massStart

beginning of mass range (as of now, must be smaller than smallest mass)

massEnd

end of mass range (as of now, must be smaller than smallest mass)

ppm

ppm tolerance

massList

list of mass vectors (eg list(1:10, 1:10))

intensityList

list of intesity vectors (eg list(1:10, 1:10))

Value

matrix where rows are samples and columns are variables (m/z preojections)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
masses <- list(Sample_A = c(5000,6000,7000), Sample_B = c(5000,6010,7005), Sample_C = c(5000,6010,7005))  
intensities <- list(Sample_A = rep(1, 3), Sample_B = rep(1, 3), Sample_C = rep(1, 3))
zx <- binnR(massStart = 3000,
            massEnd = 15000,
            ppm = 500,
            massList = masses,
            intensityList = intensities)
            
## End(Not run)

chasemc/ghosts documentation built on May 8, 2019, 12:50 a.m.