Learn R Programming

gamma (version 1.1.0)

coerce: Coerce

Description

Coerce

Usage

# S3 method for GammaSpectrum
as.matrix(x, ...)

Value

A coerced object.

Arguments

x

An object to be coerced.

...

Currently not used.

Author

N. Frerebeau

See Also

Other class: Baseline-class, CalibrationCurve-class, GammaSpectra-class, GammaSpectrum-class, PeakPosition-class

Examples

Run this code
## 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)

Run the code above in your browser using DataLab