upgrade_spectra: Upgrade one or more spectral objects

View source: R/spct.upgrade.r

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


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