These functions clean out extraneous information from exported spectral data
files and then write them out in csv format. txt2csv
and cmbl2csv
handle
files exported by LoggerPro software. sstab2csv
handles files exported by
Spectra Suite software. Not directly called by the user.
txt2csv(in.file = "", out.file = "")
The name of the input file.
The name of the output file.
A modifed file in csv format.
Extraneous text at the beginning of the file is removed. In the case of cmbl files, lines containing "Z2" or ">" are removed. Absorbances marked as "Z1" are replaced with zero. The data are initially in one long column; the wavelength and absorbances are reunited into two columns.
gatherSpecFiles
which is the function the user should
call.