cutUniquePrecursor {MetCirc} | R Documentation

## Get unique precursor ions

### Description

Get unique precursor ions

### Usage

    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

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

[Package MetCirc version 1.10.0 Index]