Read tab delimited text (.txt) files exported from ASD field spectrometer into simplerspec spectra tibble. ASD Fieldspec data files are expected in .txt tab delimited file format. The first row should contain the name 'Wavelength' for the first column and the file names for the remaining columns.

read_asd(file)

Arguments

file

Tab delmited file from ASD software export where the first column called Wavelength contais wavelengths in nanometer and the remaining columns are sample spectra referred by an ID name provided in the first row of these columns.

Value

Spectra data in tibble data frame (class tbl_df) that contains columns sample_id (derived from 2nd and following column names of tab delimited ASD exported text file), spc (list-column of spectral matrices) and wavelengths (list-column containing wavelength vectors).