View source: R/transform_spectra.R
combine | R Documentation |
combine
binds two spectral datasets. Both spectra must have the
very same band labels, but different metadata are acceptable
combine(s1, s2) ## S3 method for class 'spectra' combine(s1, s2)
s1 |
spectra object 1 |
s2 |
spectra object 2 |
combined spectra object
combine(spectra)
: Combines two spectral datasets
Jose Eduardo Meireles
library(spectrolab) # Create dummy spectra datasets. Pretend that these are all different... s1 = as_spectra(spec_matrix_example, name_idx = 1) s2 = as_spectra(spec_matrix_example, name_idx = 1) s3 = as_spectra(spec_matrix_example, name_idx = 1) # combine 2 spectra objects s_1and2 = combine(s1, s2) # combine n spectra objects using the `Reduce` function s_n = Reduce(combine, list(s1, s2, s3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.