Learn R Programming

iontree (version 1.18.0)

topIons: Retain spectrum with the most intense ions

Description

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

Usage

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

Details

References

Examples

Run this code
#Just sort:
#topIons(mz, intensity, top=length(mz))

Run the code above in your browser using DataLab