Learn R Programming

SwathXtend (version 1.0.0)

readLibFile: Load a spectrum library into a data frame

Description

Load a spectrum library into a data frame

Usage

readLibFile(file, format = c("peakview", "openswath"), type = c("spectrum", "hydro"), clean = TRUE, ...)

Arguments

file
A file of a spectrum library, in .txt or .csv format, can be .gz files.
format
A character string denoting the file format. One of "peakview" (default) and "openswath"
type
A character string denoting the file type. One of "spectrum" (default) and "hydro"
clean
A logic value, representing if the library will be cleaned.
...
Additional parameters to pass in

Value

a data frame of the library with cleaning process

Examples

Run this code
file <- paste(system.file("files",package="SwathXtend"),"Lib1.txt",sep="/")
dat <- readLibFile(file)

Run the code above in your browser using DataLab