Description Usage Arguments Details Value
Subsets spectra objects by sample names (rows) or wavelengths (columns).
1 2 | ## S3 method for class 'spectra'
this[i, j, verbose = FALSE]
|
i |
Sample names (preffered) or index. |
j |
Wavelength labels, as numeric or characeter. Do not use indexes. |
Subset operations based on samples (first argument) will match either sample names or indexes, in that order. That is, if you subset x[1:2 , ] and your sample names contain 1 and 2, you will get the spectra with names c(1, 2) and not (at least necessarily) the first and second samples in the 'spectra' object.
spectra object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.