AbstractMassObject-class
objects (e.g.
MassSpectrum-class,
MassPeaks-class) into different
text file formats.## S3 method for class 'AbstractMassObject':
exportTab(x, file,
force=FALSE, \ldots) ## S3 method for class 'list':
exportTab(x, path, force=FALSE, \ldots)
## S3 method for class 'AbstractMassObject':
exportCsv(x, file,
force=FALSE, \ldots)
## S3 method for class 'list':
exportCsv(x, path, force=FALSE, \ldots)
AbstractMassObject-class object
or a list of
AbstractMassObject-class
objects.character, file name.character, path to directory in which
the list of
AbstractMassObject-class would
be exported.logical, If TRUE the
file would be overwritten or path would be
created.write.table.exportTab and exportCsv use
write.table with different defaults
(sep="" in exportTab and sep=","
in exportCsv).
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)
MassPeaks-class,
MassSpectrum-class,
write.table