write.mzdata-methods {xcms} | R Documentation

## Save an xcmsRaw object to a file

### Description

Write the raw data to a (simple) mzData file.

### Arguments

`object` | the `xcmsRaw` object
`filename` | filename (may include full path) for the mzData file. Pipes or URLs are not allowed.

### Details

This function will export a given xcmsRaw object to an mzData file. The mzData file will contain a <spectrumList> containing the <spectrum> with mass and intensity values in 32 bit precision. Other formats are currently not supported. Any header information (e.g. additional <software> information or <cvParams>) will be lost. Currently, also any MSn information will not be stored.

### Value

None.

### Methods

object = "xcmsRaw"

  `write.mzdata(object, filename)`

### See Also

`xcmsRaw-class`, `xcmsRaw`,

[Package xcms version 3.2.0 Index]