subtractPeaks.numeric: Remove peaks from a peaklist within specified mass accuracy

Description Usage Arguments Value

View source: R/subtractPeaks.numeric.R

Description

Remove peaks from a peaklist within specified mass accuracy

Usage

1
2
## S3 method for class 'numeric'
subtractPeaks(input, vec, ppm1, ppm2, index = TRUE)

Arguments

input

numeric; Peaklist to be subtracted from

vec

numeric; List of peaks to be removed from v1

ppm1

numeric; Mass accuracy for peaklist v1, in ppm

ppm2

numeric; Mass accuracy for peaklist v2, in ppm

index

logical; Report indices of peaks to be retained if TRUE, else report values

Value

indices of vector v1 to be retained if index=TRUE, otherwise the values of vector v1 corresponding to those indices.


kbseah/mass2adduct documentation built on June 9, 2021, 9:20 p.m.