Extract or replace parts of FEEM spectra. Returns FEEM objects unless
dimensions should be dropped. When assigning from a FEEM object,
requires wavelenths 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
Arguments
x
A FEEM object.
i, j
Row and column indices, respectively. As in usual R
subsetting, may be integer, logical or character
vectors, or missing.
drop
Coerce result to the lowest possible dimension (dropping the
feem class if so). This only makes sence for extracting,
not replacement.
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.
Value
For [: If isTRUE(drop) and at least one of the index
arguments chooses only one element along its axis, a named numeric
vector. Otherwise, a FEEM object.