Choose channels by position.
signal_slice(object, ...) # S4 method for GammaSpectrum signal_slice(object, ...) # S4 method for GammaSpectra signal_slice(object, ...)
object | A GammaSpectrum or GammaSpectra object. |
---|---|
... |
|
A GammaSpectrum or GammaSpectra object.
Either positive values to keep, or negative values to drop, should be provided. The values provided must be either all positive or all negative.
If no value is provided, an attempt is made to define the number of channels to skip at the beginning of the spectrum. This drops all channels before the highest count maximum. This is intended to deal with the artefact produced by the rapid growth of random background noise towards low energies.
Other signal processing:
baseline
,
peaks_find()
,
signal_integrate()
,
signal_stabilize()
,
smooth()
N. Frerebeau
## Import CNF files spc_file <- system.file("extdata/LaBr.CNF", package = "gamma") spc <- read(spc_file) ## Plot spectrum plot(spc)