Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wl_units

Wavelengths of Spectra* objects


Description

Retrieves the wavelengths units from Spectra* object

Usage

wl_units(object)

## S4 replacement method for signature 'Spectra'
wl_units(object) <- value

Arguments

object

an object inheriting from class Spectra

value

a character string

Value

A vector

Author(s)

Pierre Roudier pierre.roudier@gmail.com

Examples

# Loading example data
data(oz)
spectra(oz) <- sr_no ~ ... ~ 350:2500

# Print wavelength information
wl(oz)
range(wl(oz))

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

spectacles

Storing, Manipulating and Analysis Spectroscopy and Associated Data

v0.5-3
GPL-3
Authors
Pierre Roudier [aut, cre], Max Kuhn [ctb], Kristian Hovde Liland [ctb], Bjorn-Helge Mevik [ctb], Hadley Wickham [ctb], Raphael Viscarra Rossel [dtc]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.