Skip to contents

Update the spectral class names of objects to those used in photobiology (>= 0.6.0).

Usage

upgrade_spectra(obj.names = ls(parent.frame()))

Arguments

obj.names

char Names of objects to upgrade as a vector of character strings

Value

The modified object (invisibly).

Note

The objects are modified by reference. The class names with ending ".spct" are replaced by their new equivalents ending in "_spct". object.names can safely include names of any R object. Names of objects which do not belong to any the old .spct classes are ignored. This makes it possible to supply as argument the output from ls, the default, or its equivalent objects.

See also

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