| outputLib {SwathXtend} | R Documentation |
output a spectrum library into a PeakView format file
outputLib(dat, filename = "NewLib.txt", format = c("peakview", "openswath"),
nodup = TRUE)
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) |
a file with the specified file name (lib.txt as default) will be saved under the current working directory
file <- paste(system.file("files",package="SwathXtend"),"Lib1.txt",sep="/")
dat <- readLibFile(file)
outputLib(dat)