as_spectra.data.frame function

Convert data.frame to spectra