spectra | R Documentation |
Functions to access slot data of the Class Spectra.
spectra(object, ...)
## S4 method for signature 'Spectra'
spectra(object, ...)
## S4 method for signature 'data.frame'
spectra(object, ...)
## S4 method for signature 'matrix'
spectra(object, ...)
object |
A Spectra object, spectra.data.frame, or spectra.matrix. |
... |
Other options. |
Construct generic functions for the Spectra object, spectra.data.frame, and spectra.matrix.
# For the S4 class 'Spectra'
library(visa)
data(NSpec.Lib)
spectra_matrix <- spectra(NSpec.Lib)
# For the spectra data.frame
data(NSpec.DF)
spectra_matrix <- spectra(NSpec.DF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.