| msc.peaks.read.csv {caMassClass} | R Documentation |
Functions to read and write CSV (comma separated values) text files containing peaks in the format used by Ciphergen's peak file.
X = msc.peaks.read.csv(fname) msc.peaks.write.csv(fname, X)
fname |
either a character string naming a file or a connection. |
X |
Peak information. A data-frame in the same format as returned by
msc.peaks.find, containing five components:
|
Function msc.peaks.read.csv returns peak information data frame. See
argument X above. Function msc.peaks.write.csv does not return
anything.
Jarek Tuszynski (SAIC) jaroslaw.w.tuszynski@saic.com
msc.peaks.find and msc.peaks.align
example("msc.peaks.find") # create peak data
X = Peaks # Peak data is stored in variable 'Peaks'
msc.peaks.write.csv("peaks.csv", X)
X = msc.peaks.read.csv("peaks.csv")
file.remove("peaks.csv")
stopifnot(X==Peaks)