wl_range {photobiology}R Documentation

Wavelength range

Description

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

Usage

wl_range(x, na.rm = FALSE)

## S3 method for class 'waveband'
range(..., na.rm = FALSE)

## S3 method for class 'generic_spct'
range(..., na.rm = FALSE)

## S3 method for class 'generic_mspct'
range(..., na.rm = FALSE, idx = NULL)

Arguments

x

generic_spct, generic_mspct or waveband object.

na.rm

ignored

...

a single R object

idx

logical whether to add a column with the names of the elements of spct

Methods (by class)

See Also

Other wavelength summaries: wl_midpoint, wl_min, wl_stepsize

Examples

range(sun.spct)
wl_range(sun.spct)

range(sun.spct)


[Package photobiology version 0.9.21 Index]