inst/examples/ex-coerce.R

## 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)
crp2a/gamma documentation built on April 10, 2024, 9:10 p.m.