Skip to contents

Function to set by reference the "what.measured" attribute of an existing generic_spct or derived-class object.

Usage

setWhatMeasured(x, what.measured)

what_measured(x) <- value

Arguments

x

a generic_spct object

what.measured, value

a list

Value

x

Note

This function alters x itself by reference and in addition returns x invisibly. If x is not a generic_spct object, x is not modified.

Examples

my.spct <- sun.spct
what_measured(my.spct)
#> [1] "sunlight, simulated"
what_measured(my.spct) <- "Sun"
what_measured(my.spct)
#> [1] "Sun"