In order to reduce the spectral resolution and thus gain signal to
noise ratio or to reduce the dimensionality of the spectral data set,
the spectral resolution can be reduced.
decides about the treatment of NAs:
if FALSE or 0, the binning is done using na.rm = FALSE
if TRUE or 1, the binning is done using na.rm = TRUE
...
handed to logentry.
Value
A hyperSpec object with ceiling (nwl (spc) / by)
data points per spectrum.
Details
The mean of every by data points in the spectra is calculated.
Using na.rm = TRUE always takes about twice as long as na.rm = FALSE.
If the spectra matrix does not contain too many NAs, na.rm = 2 is faster than
na.rm = TRUE.