Description Usage Arguments Value Methods Author(s) Examples
Either retrieves the wavelengths from a Spectra* object, or creates a
Spectra* object from a "data.frame" object by setting some of
its columns as the wavelengths. The "ids<-" method for
SpectraDataFrame objects allows to use a formula interface to use a
column in its data slot as the object IDs (see the last example provided
in the Examples section).
1 2 3 4 5 6 7 8 |
object |
an object of class |
... |
|
value |
character vector for new IDs |
The ids methods return a vector if as.vector is TRUE,
a data.frame otherwise. The "ids<-" method return a
SpectraDataFrame object (or a Spectra object if the column in
the data slot that has been used to initiate the IDs was the only
attribute).
ids(object, ..., as.vector = TRUE)
ids(object) <- value
Pierre Roudier pierre.roudier@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.