Skip to contents

A method specialization that returns the wavelength range [\(nm\)] 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 = "spct.idx")

Arguments

x

generic_spct, generic_mspct or waveband object.

na.rm

ignored

...

a single R object

idx

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

Value

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

Methods (by class)

  • range(generic_spct):

  • range(generic_mspct):

See also

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

Examples

range(sun.spct)
#> [1] 280 800
wl_range(sun.spct)
#> [1] 280 800

range(sun.spct)
#> [1] 280 800