upgrade_spectra {photobiology}R Documentation

Upgrade one or more spectral objects

Description

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()


[Package photobiology version 0.11.2 Index]