Learn R Programming

SwathXtend (version 1.0.0)

outputLib: output a spectrum library into a PeakView format file

Description

output a spectrum library into a PeakView format file

Usage

outputLib(dat, filename = "NewLib.txt", format = c("peakview", "openswath"), nodup = TRUE)

Arguments

dat
A data frame of a spectrum library
filename
A character string for the name of the output.
format
A character string representing the output format. One of "peakview" (default) and "openswath".
nodup
A logic value, indicating if remove duplicated sprectrum (default)

Value

a file with the specified file name (lib.txt as default) will be saved under the current working directory

Examples

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

Run the code above in your browser using DataLab