sub-.spectra: Subsets a spectra object

Description Usage Arguments Details Value

Description

Subsets spectra objects by sample names (rows) or wavelengths (columns).

Usage

1
2
## S3 method for class 'spectra'
this[i, j, verbose = FALSE]

Arguments

i

Sample names (preffered) or index.

j

Wavelength labels, as numeric or characeter. Do not use indexes.

Details

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.

Value

spectra object


annakat/casper_defunct documentation built on May 10, 2019, 11:50 a.m.