topIons: Retain spectrum with the most intense ions

Description Usage Arguments Value Author(s) Examples

View source: R/topIons.R

Description

Retain the most intense ions in a spectrum and return sorted spectrum in 2-col matrix

Usage

1
topIons(mz, intensity, top)

Arguments

mz

m/z

intensity

intensity

top

the number of most intense m/z to be maintained

Value

return a 2-col matrix

Author(s)

Mingshu Cao

Examples

1
2
#Just sort:
#topIons(mz, intensity, top=length(mz))

iontree documentation built on May 2, 2018, 2:55 a.m.