wavelength-methods: Access the wavelength of Spectra

Description Usage Arguments Details Examples

Description

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

Usage

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

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

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

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

Arguments

object

A object of Spectra

...

Other options (... T/F with unit)

Details

A call to new returns a newly allocated object from the class identified by the first argument. This call in turn calls the method for the generic function 'initialize'. Construct a Spectra class by using the

Examples

1
2
3
4
5
library(visa)
# For S4 class Spectra
wavelength(NSpec.DB)
# For spectra data.frame format
wavelength(NSpec.DF)

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