inst/examples/ex-peaks.R

# Import a Canberra CNF file
spc_file <- system.file("extdata/test_LaBr.CNF", package = "gamma")
spectrum <- read(spc_file)

# Find peaks
(peaks <- find_peaks(spectrum))
plot(spectrum, peaks)
nfrerebeau/gamma documentation built on March 25, 2020, 4:24 p.m.