Learn R Programming

SpecHelpers (version 0.2.7)

avgLambda: Convert Wavelengths to Integer Values and Average Corresponding Absorbances

Description

This function reads a csv file containing columns of wavelength and absorbances. It rounds the wavelengths to integers and replaces the absorbances corresponding to the rounded values with their averages. NOTE THAT ALL THE csv FILES IN THE CURRENT DIRECTORY ARE PROCESSED AND REPLACED WITH THE MODIFIED FILEs. You should use this function on a copy of the directory.

Usage

avgLambda()

Arguments

Value

The original files are overwritten with the modified files.

See Also

gatherSpecFiles which is the function the user should call.