hy_spc2df.Rd
Transpose matrix of spectra in hyperSpec object, add column with wavelengths and return as a dataframe
hy_spc2df(obj)
hyperSpec object
A data frame with wavelengths in the first column and each row of hyperSpec object in a separate column.
library(spHelper)
chondro[[]][1,1:6]
#> Error in eval(expr, envir, enclos): object 'chondro' not found
hy_spc2df(chondro)[1:6,1:2]
#> Error in is_hyperSpec(object): object 'chondro' not found