photobiology (version 0.9.30)

rmDerivedSpct: Remove "generic_spct" and derived class attributes.

Description

Removes from an spectrum object the class attributes "generic_spct" and any derived class attribute such as "source_spct". This operation is done by reference!

Usage

rmDerivedSpct(x)

Arguments

x

an R object.

Value

A character vector containing the removed class attribute values. This is different to the behaviour of function unlist in base R!

See Also

Other set and unset spectral class functions: setGenericSpct()

Examples

Run this code
# NOT RUN {
my.spct <- sun.spct
removed <- rmDerivedSpct(my.spct)
removed
class(sun.spct)
class(my.spct)

# }

Run the code above in your browser using DataCamp Workspace