View source: R/transform_spectra.R
split.spectra | R Documentation |
split
a spectra object into a list of spectra according to grouping f.
## S3 method for class 'spectra' split(x, f, drop = FALSE, ...)
x |
spectra object |
f |
factor vector defining the grouping. Must have length nrow(x) |
drop |
NOT used |
... |
NOT used |
list of spectra
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) spec_list = split(spec, names(spec))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.