SpectraInTimeComp-class | R Documentation |
Spectral-time data for 1 experiment with dimension reduction techique NMF and/or PCA decomposition included
## S4 method for signature 'SpectraInTimeComp' getDimensionReduction(object, type = NULL)
object |
of class SpectraInTimeComp-class |
type |
type of regression method specified, if NULL the entire slot is returned as a list |
dimensionReduction
list containing dimension reduction techique, either PCA or NMF, but only one per kind.
Adriaan Blommaert
# generate example exampleSpectra <- getSpectraInTimeCompExample() # methods PCAResult <- getDimensionReduction( exampleSpectra, type = "PCA" ) NMFResult <- getDimensionReduction( exampleSpectra, type = "NMF" ) dimensionReductions <- getDimensionReduction( exampleSpectra ) str(dimensionReductions ) # subsetting works by reducing to \code{\link{SpectraInTime-class}} subsetting <- exampleSpectra[1:3 , r(400, 450)] # preprocessing methods also reduce the object to \code{\link{SpectraInTime-class}}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.