nPeaks: generic method for nPeaks

Description Usage Arguments Value Examples

Description

generic method for nPeaks

nPeaks accessor/getter nPeaks for PeakList Class

Usage

1
2
3
4
nPeaks(object)

## S4 method for signature 'PeakList'
nPeaks(object)

Arguments

object

object of class PeakList

Value

integer value for number of peaks

Examples

1
2
3
4
5
6
7
8
library(tofsimsData) 
data(tofsimsData)
testSpectra<-calibPointNew(testSpectra, mz = 15, value = 15.01551)
testSpectra<-calibPointNew(testSpectra, mz = 181, value = 181.0228)
testSpectra<-recalibrate(testSpectra)
testSpectra<-unitMassPeaks(testSpectra, mzRange = c(1,200), widthAt = c(15, 181), 
factor = c(0.4, 0.6), lower = c(14.97, 15.05), upper = c(180.84, 181.43))
nPeaks(testSpectra)

tofsims documentation built on Nov. 8, 2020, 5:10 p.m.