exportTab,AbstractMassObject-method | R Documentation |
This function exports
AbstractMassObject-class
objects (e.g.
MassSpectrum-class
,
MassPeaks-class
)
into different text file formats.
## S4 method for signature 'AbstractMassObject'
exportTab(x, file, force=FALSE, ...)
## S4 method for signature 'list'
exportTab(x, path, force=FALSE, ...)
## S4 method for signature 'AbstractMassObject'
exportCsv(x, file, force=FALSE, ...)
## S4 method for signature 'list'
exportCsv(x, path, force=FALSE, ...)
x |
a |
file |
|
force |
|
path |
|
... |
arguments to be passed to |
exportTab
and exportCsv
use write.table
with different defaults (sep="\t"
in exportTab
and
sep=","
in exportCsv
).
Sebastian Gibb
https://strimmerlab.github.io/software/maldiquant/
MassPeaks-class
,
MassSpectrum-class
,
write.table
## Not run:
library("MALDIquant")
library("MALDIquantForeign")
s <- list(createMassSpectrum(mass=1:5, intensity=1:5),
createMassSpectrum(mass=1:5, intensity=1:5))
## export a single spectrum
exportTab(s[[1]], file="spectrum.tab")
## export a list of spectra and use ; as separator
exportCsv(s, path="spectra", sep=";", force=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.