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.Value
- The original files are overwritten with the modified files.