Extract or replace parts of FEEM spectra. Returns FEEM objects unless
dimensions should be dropped. When assigning from a FEEM object,
requires wavelengths to match and warns if scale factors differ.
Usage
# S3 method for feem
[(x, i, j, drop = TRUE)
# S3 method for feem
[(x, i, j) <- value
Value
For [: If drop is TRUE and at least one of the
index arguments chooses only one element along its axis, a named
numeric vector. Otherwise, a FEEM object.
For [<-: a FEEM object.
Arguments
x
A FEEM object.
i, j
Row and column indices, respectively. As in usual R subsetting
(see Extract), may be integer, logical or character vectors,
or missing.
drop
Coerce result to the lowest possible dimension (dropping the
feem class if so).
value
An array-like object to assign values from. When assigning from
FEEM objects, wavelengths are required to match and warnings are
issued if scale factors don't match. Use vector subsetting (zero or
one argument inside the brackets) to disable the check.