powered by
Convert spectra to matrix
# S3 method for spectra as.matrix(x, fix_names = "none", ...)
spectra object
Use make.names to normalize names? Pick one: "none" "row" "col" "both".
does nothing. Here for compatibility with S3 generics
matrix of spectral value. columns are bands and rows are samples
# NOT RUN { library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) mat = as.matrix(spec) # }
Run the code above in your browser using DataLab