scanNumber {rawrr} | R Documentation

## Accessor function for scan number of `rawrrSpectrum` objects

### Description

Accessor function for scan number of `rawrrSpectrum` objects

### Usage

    scanNumber(x)

### Arguments

`x` | A rawrrSpectrum object

### Details

This accessor function returns the scan number of a mass spectrum stored as `rawrrSpectrum` object. Scan numbers are equal to the scan index j running from 1 to n with n being the last scan of a raw file.

### Value

The scan number of type `integer`

### Examples

    S <- readSpectrum(rawfile = sampleFilePath(), 1:10)
    scanNumber(S[[1]])

[Package rawrr version 1.2.0 Index]