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
`massrange` | limit data points returned to those between in the range, `range(massrange)`

### Value

A matrix with two columns:

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

### Methods

object = "xcmsRaw"
  `getScan(object, scan, massrange = numeric())`

### See Also

`xcmsRaw-class`, `getSpec`

[Package xcms version 1.10.7 Index]