Learn R Programming

SpecHelpers (version 0.2.7)

txt2csv: Utility Functions to Clean and Convert Spectral Files to csv

Description

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.

Usage

txt2csv(in.file = "", out.file = "")

Arguments

in.file

The name of the input file.

out.file

The name of the output file.

Value

A modifed file in csv format.

Details

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.

See Also

gatherSpecFiles which is the function the user should call.