importTab-functions: Import text files

importTxtR Documentation

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

https://strimmerlab.github.io/software/maldiquant/

See Also

MassSpectrum-class, MassPeaks-class, read.table

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 documentation built on May 29, 2024, 3:53 a.m.