photobiology (version 0.9.30)

wl_max: Wavelength maximum

Description

A method specialization that returns the wavelength maximum from objects of classes "waveband" or of class "generic_spct" or derived.

Usage

wl_max(x, na.rm = FALSE)

# S3 method for waveband max(..., na.rm = FALSE)

# S3 method for generic_spct max(..., na.rm = FALSE)

# S3 method for generic_mspct max(..., na.rm = FALSE, idx = "spct.idx")

Arguments

x

generic_spct, generic_mspct or waveband object.

na.rm

ignored

...

not used in current version

idx

character Name of the column with the names of the members of the collection of spectra.

Methods (by class)

  • generic_spct:

  • generic_mspct:

Examples

Run this code
# NOT RUN {
max(sun.spct)
wl_max(sun.spct)

# }

Run the code above in your browser using DataCamp Workspace