read | R Documentation |
Reads a gamma ray spectrum file.
read(file, ...)
## S4 method for signature 'character'
read(file, extensions = c("cnf", "tka", "spe"), ...)
file |
A |
... |
Extra parameters to be passed to |
extensions |
A |
A GammaSpectra object if more than one spectrum are imported at once, else a GammaSpectrum object.
Supports Canberra CNF and TKA and Kromek SPE files.
N. Frerebeau
rxylib::read_xyData()
Other IO:
summarise()
## Import a Canberra CNF file
cnf_file <- system.file("extdata/LaBr.CNF", package = "gamma")
(cnf_spc <- read(cnf_file))
## Import a TKA file
tka_file <- system.file("extdata/LaBr.TKA", package = "gamma")
(tka_spc <- read(tka_file))
## Import all files in a given directory
spc_dir <- system.file("extdata/BDX_LaBr_1/calibration", package = "gamma")
(spc <- read(spc_dir))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.