coerce: Coerce

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

nfrerebeau/gamma documentation built on April 14, 2024, 7:26 a.m.