outputLib {SwathXtend}R Documentation

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

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

[Package SwathXtend version 2.10.0 Index]