Export to text files
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
## 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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.