coerce | R Documentation |
Coerce
## S3 method for class 'GammaSpectrum'
as.matrix(x, ...)
x |
An object to be coerced. |
... |
Currently not used. |
A coerced object.
N. Frerebeau
Other class:
Baseline-class
,
CalibrationCurve-class
,
GammaSpectra-class
,
GammaSpectrum-class
,
PeakPosition-class
## Import a Canberra CNF file
spc_file <- system.file("extdata/LaBr.CNF", package = "gamma")
spc <- read(spc_file)
## Coerce
mtx <- as.matrix(spc)
df <- as.data.frame(spc)
head(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.