spectra-methods: Access the spectra data of 'SpectraDatabase'.

Description Usage Arguments Details Examples

Description

Functions to access slot data of the Class Spectra.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
spectra(object, ...)

## S4 method for signature 'Spectra'
spectra(object, ...)

## S4 method for signature 'data.frame'
spectra(object, ...)

## S4 method for signature 'matrix'
spectra(object, ...)

Arguments

object

A Spectra object, spectra.data.frame, or spectra.matrix.

...

Other options.

Details

Construct generic functions for the Spectra object, spectra.data.frame, and spectra.matrix.

Examples

1
2
3
4
5
6
7
# For the S4 class 'Spectra'
library(visa)
data(NSpec.DB)
spectra_matrix <- spectra(NSpec.DB)
# For the spectra data.frame
data(NSpec.DF)
spectra_matrix <- spectra(NSpec.DF)

visa documentation built on April 20, 2021, 9:07 a.m.