as.matrix.spectra | R Documentation |
Convert spectra to matrix
## S3 method for class 'spectra' as.matrix(x, fix_names = "none", ...)
x |
spectra object |
fix_names |
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
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) mat = as.matrix(spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.