scanNumber: Accessor function for scan number of 'rawrrSpectrum' objects

View source: R/accessorFunctions.R

scanNumberR 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]])

fgcz/rawR documentation built on May 5, 2024, 3:46 p.m.