getBegEndIndMSP {MetCirc} | R Documentation

## Get beginning and end indices of each entry in a `data.frame` in `peaks(MSP)`-objects

### Description

Get beginning and end indices of each entry in a `data.frame` in a `peaks(MSP)`-object

### Usage

    getBegEndIndMSP(msp)

### Arguments

`msp` | `data.frame` in `peaks(MSP)`-object, see `?convert2MSP` for further information

### Details

Internal use to retrieve start and end row indices for fragments of MS/MS features.

### Value

`getBegEndIndMSP` returns a list of length 2 where the first entry contains the start indices and the second the end indices

### Author(s)

Thomas Naake, thomasnaake@googlemail.com

### Examples

    data("sd02_deconvoluted", package = "MetCirc")
    finalMSP <- convert2MSP(sd02_deconvoluted, split = " _ ",
                             splitIndMZ = 2, splitIndRT = 3)
    finalMSPdf <- peaks(finalMSP)
    getBegEndIndMSP(finalMSPdf)

[Package MetCirc version 1.10.0 Index]