getScan-methods {xcms} | R Documentation

## Get m/z and intensity values for a single mass scan

### Description

Return the data from a single mass scan using the numeric index of the scan as a reference.

### Arguments

`object` | the `xcmsRaw` object
`scan` | integer index of scan. if negative, the index numbered from the end
`mzrange` | limit data points returned to those between in the range, `range(mzrange)`

### Value

A matrix with two columns:

`mz` | m/z values
`intensity` | intensity values

### Methods

object = "xcmsRaw"

  `getScan(object, scan, mzrange = numeric())` `getMsnScan(object, scan, mzrange = numeric())`

### See Also

`xcmsRaw-class`, `getSpec`

[Package xcms version 3.10.2 Index]