coerce {gamma}R Documentation

Coerce

Description

Coerce

Usage

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

Arguments

x

An object to be coerced.

...

Currently not used.

Value

A coerced object.

Author(s)

N. Frerebeau

See Also

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

Examples

## 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)

[Package gamma version 1.0.5 Index]