accessors {CluMSID} | R Documentation

## Accessor functions for individual slots of `MS2spectrum` and `pseudospectrum` objects

### Description

Accessor functions for individual slots of `MS2spectrum` and `pseudospectrum` objects

### Usage

    accessID(x)

    accessAnnotation(x)

    accessPrecursor(x)

    accessRT(x)

    accessPolarity(x)

    accessSpectrum(x)

    accessNeutralLosses(x)

### Arguments

`x` | An object of class `MS2spectrum` or `pseudospectrum`

### Value

The value of the respective slot of the object (`id`, `annotation`, `precursor`, `rt`, `spectrum`, `neutral_losses`)

### Examples

    load(file = system.file("extdata",
        "annotatedSpeclist.RData",
        package = "CluMSIDdata"))

    accessID(annotatedSpeclist[[1]])

    load(file = system.file("extdata",
        "annotatedSpeclist.RData",
        package = "CluMSIDdata"))

    accessAnnotation(annotatedSpeclist[[1]])

    load(file = system.file("extdata",
        "annotatedSpeclist.RData",
        package = "CluMSIDdata"))

    accessPrecursor(annotatedSpeclist[[1]])

    load(file = system.file("extdata",
        "annotatedSpeclist.RData",
        package = "CluMSIDdata"))

    accessRT(annotatedSpeclist[[1]])

    load(file = system.file("extdata",
        "annotatedSpeclist.RData",
        package = "CluMSIDdata"))

    accessPolarity(annotatedSpeclist[[1]])

    load(file = system.file("extdata",
        "annotatedSpeclist.RData",
        package = "CluMSIDdata"))

    accessSpectrum(annotatedSpeclist[[1]])

    load(file = system.file("extdata",
        "annotatedSpeclist.RData",
        package = "CluMSIDdata"))

    accessNeutralLosses(annotatedSpeclist[[1]])

[Package CluMSID version 1.10.0 Index]