ind.pk: return index of peaks

ind.pkR Documentation

return index of peaks

Description

return index of peaks

Usage

ind.pk(ms, mode = c("max", "exact", "all"), L = sp)

Arguments

ms

the mass of the peak

mode

a character. Specifies whether the returned index is the exact peak (exact), the maximum peak (max) or all peaks (all) related to a unit mass.

L

sp

Value

a numeric vector

Examples

# For get the index for one peak :
# ind.pk(137)
# [1] 318
# Or for more :
# sapply(c(81,137,205),ind.pk)

JHuguenin/provoc documentation built on Jan. 29, 2024, 12:39 a.m.