asdataframe function

Conversion of a hyperSpec object into a data.frame or matrix as.data.frame returns x@data (as data.frame) as.matrixreturns the spectra matrix x@data$spc as matrix