max: Wavelength maximum

wl_maxR Documentation

Wavelength maximum

Description

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

Usage

wl_max(x, na.rm = FALSE)

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

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

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

Arguments

x

generic_spct, generic_mspct or waveband object.

na.rm

ignored

...

numeric, waveband or generic_spct arguments.

idx

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

Value

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

Methods (by class)

  • max(generic_spct):

  • max(generic_mspct):

Examples

max(sun.spct)
wl_max(sun.spct)


photobiology documentation built on Oct. 21, 2023, 1:06 a.m.