txt2csv {SpecHelpers}R Documentation

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.

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.

Value

A modifed file in csv format.

Author(s)

Bryan A. Hanson, DePauw University.

See Also

gatherSpecFiles which is the function the user should call.


[Package SpecHelpers version 0.2.7 Index]