read_asd: Read ASD fieldspec spectrometer data export into into...

View source: R/read-asd.R

read_asdR Documentation

Read ASD fieldspec spectrometer data export into into simplerspec spectra tibble.

Description

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.

Usage

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).


philipp-baumann/simplerspec documentation built on Oct. 3, 2023, 12:13 p.m.