signal_split {gamma} | R Documentation |
Split
Description
Split
Usage
signal_split(object, ...)
## S4 method for signature 'GammaSpectrum'
signal_split(object, groups)
Arguments
object |
A GammaSpectrum object. |
... |
Currently not used. |
groups |
A a |
Value
A GammaSpectra object.
Author(s)
N. Frerebeau
See Also
Other signal processing:
baseline
,
peaks_find()
,
peaks_search()
,
signal_integrate()
,
signal_slice()
,
signal_stabilize()
,
smooth()
Examples
## Import CNF files
spc_file <- system.file("extdata/LaBr.CNF", package = "gamma")
spc <- read(spc_file)
## Plot spectrum
plot(spc)
## Slice
sliced <- signal_slice(spc)
plot(sliced)
sliced <- signal_slice(spc, -c(1:35))
plot(sliced)
sliced <- signal_slice(sliced, 450:550)
plot(sliced)
## Split
g <- rep(c("A", "B", "C"), c(250, 500, 274))
splited <- signal_split(spc, g)
plot(splited, facet = TRUE)
[Package gamma version 1.0.5 Index]