as.data.frame.spectra function

Convert spectra to data.frame