wl_units: Wavelengths of Spectra* objects

Description Usage Arguments Value Author(s) Examples

Description

Retrieves the wavelengths units and the spectral resolution from Spectra* objects.

Usage

1
2
3
wl_units(object)
wl_units(object) <- value
res(x)

Arguments

object, x

an object inheriting from class Spectra, or a "numeric" vector for resolution

value

a character string

Value

A vector. res is giving NULL for irregularly spaced wavelengths (eg when there is parts of the spectra data have been removed).

Author(s)

Pierre Roudier pierre.roudier@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Loading example data
data(australia)
spectra(australia) <- sr_no ~ ... ~ 350:2500

# Print wavelength information
wl(australia)
range(wl(australia))
res(australia)

# Manipulate wavelength information
wl(australia) <- wl(australia) + 1000
wl(australia)

inspectr documentation built on May 2, 2019, 5:45 p.m.