Learn R Programming

photobiology (version 0.11.3)

wl_min: Wavelength minimum

Description

A method specialization that returns the wavelength minimum [\(nm\)] from objects of classes waveband or of class generic_spct or derived.

Usage

wl_min(x, na.rm = FALSE)

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

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

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

Value

a length-one vector for individual objects or numeric vectors or a data frame for collections of spectra.

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)

  • min(generic_spct):

  • min(generic_mspct):

See Also

Other wavelength summaries: wl_midpoint(), wl_range(), wl_stepsize()

Examples

Run this code
min(sun.spct)
wl_min(sun.spct)

Run the code above in your browser using DataLab