names<-.spectra | R Documentation |
names
assigns sample names to lhs
## S3 replacement method for class 'spectra'
names(x) <- value
x |
spectra object (lhs) |
value |
values to be assigned (rhs) |
nothing. called for its side effect.
Jose Eduardo Meireles
library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
names(spec) = toupper(names(spec))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.