spc.bin: Wavelength Binning
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.
Description
The mean of every by data points in the spectra is
calculated.
Usage
spc.bin(spc, by = stop("reduction factor needed"),
na.rm = TRUE, ..., short = "spc.bin", user = NULL,
date = NULL)
Arguments
spc
the hyperSpec object
by
reduction factor
na.rm
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
if
Value
A hyperSpec object with ceiling (nwl (spc) /
by) data points per spectrum.