Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

importTab-functions

Import text files


Description

This function imports different text file formats into MassSpectrum-class or MassPeaks-class objects.

Usage

importTxt(path, ...)

importTab(path, ...)

importCsv(path, ...)

Arguments

path

character, path to directory or file which should be read in.

...

arguments to be passed to read.table.

Details

importTab, importTxt and importCsv use read.table with different defaults.

Value

a list of MassSpectrum-class or MassPeaks-class objects (depending on the centroided argument).

Author(s)

Sebastian Gibb

References

See Also

Examples

library("MALDIquant")
library("MALDIquantForeign")

## get example directory
exampleDirectory <- system.file("exampledata", package="MALDIquantForeign")

## import txt files
s <- importTxt(exampleDirectory)

## import csv files
s <- importCsv(exampleDirectory)

MALDIquantForeign

Import/Export Routines for 'MALDIquant'

v0.12
GPL (>= 3)
Authors
Sebastian Gibb [aut, cre] (<https://orcid.org/0000-0001-7406-4443>), Pietro Franceschi [ctb]
Initial release
2019-01-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.