cutUniquePrecursor: Get unique precursor ions

Description Usage Arguments Details Value Author(s) Examples

Description

Get unique precursor ions

Usage

1
2
cutUniquePrecursor(precursor, splitPattern = splitPattern, 
     splitInd = splitInd, returnCharacter = TRUE)

Arguments

precursor

character where features are separated by splitPattern

splitPattern

character, character vector to use for splitting, see ?strsplit for further information

splitInd

numeric, extract precursor mz at position splitInd

returnCharacter

logical, if TRUE return character, if FALSE return numeric

Details

Function for internal usage.

Value

The function cutUniquePrecursor returns character or numeric as specified by parameters.

Author(s)

Thomas Naake, thomasnaake@googlemail.com

Examples

1
2
3
4
5
precursor <- "A_269.0455469_-1"
splitPattern <- "_"
splitInd <- 2
cutUniquePrecursor(precursor, splitPattern = splitPattern, 
     splitInd = splitInd, returnCharacter = TRUE)

PlantDefenseMetabolism/MetCirc documentation built on May 8, 2019, 2:52 p.m.