outputLib: output a spectrum library into a PeakView format file

Description Usage Arguments Value Examples

View source: R/outputLib.R

Description

output a spectrum library into a PeakView format file

Usage

1
2
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

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

Example output

Loading required package: e1071
Loading required package: openxlsx
Loading required package: VennDiagram
Loading required package: grid
Loading required package: futile.logger
Loading required package: lattice

SwathXtend documentation built on Nov. 8, 2020, 6:42 p.m.