Skip to contents

Update the spectral class names of objects to those used in photobiology (>= 0.6.0) and add 'version' attribute as used in photobiology (>= 0.70).

Usage

upgrade_spct(object)

Arguments

object

generic.spct A single object to upgrade

Value

The modified object (invisibly).

Note

The object is modified by reference. The class names with ending ".spct" replaced by their new equivalents ending in "_spct".

See also

Other upgrade from earlier versions: is.old_spct(), upgrade_spectra()