| canonicalFormat {SwathXtend} | R Documentation |
Standardise a sprectrum library data frame
canonicalFormat(dat, format = c("peakview", "openswath"))
dat |
a data frame of a spectrum library |
format |
a character string, representing the format of the input spectrum library. One of "peakview" (default) and "openswath" |
a data frame of the library in canonical format
file <- paste(system.file("files",package="SwathXtend"),"Lib1.txt",sep="/")
dat <- read.delim2(file,sep="\t",stringsAsFactor = FALSE, header=TRUE)
dat <- try(canonicalFormat(dat, format = "peakview"))