Finds and imports spectra files from a folder. Currently works
for reflectance files generated in Ocean Optics SpectraSuite (USB2000,
USB4000 and Jaz spectrometers), CRAIC software (after exporting) and
Avantes (after exporting).
file extension to be searched for, without the "."
(defaults to "txt").
lim
a vector with two numbers determining the wavelength limits to be
considered (defaults to 300 and 700).
decimal
character to be used to identify decimal plates
(defaults to ".").
subdir
should subdirectories within the where folder be
included in the search? (defaults to FALSE).
subdir.names
should subdirectory path be included in the name of the
spectra? (defaults to FALSE).
Value
A data frame, of class rspec, containing individual imported
spectral files as columns.
Reflectance values are interpolated to the nearest wavelength integer.
References
Montgomerie R (2006) Analyzing colors. In: Hill G, McGraw K (eds)
Bird coloration. Harvard University Press, Cambridge, pp 90-147.