Learn R Programming

photobiology (version 0.11.4)

setWhatMeasured: Set the "what.measured" attribute

Description

Function to set by reference the "what.measured" attribute of an existing generic_spct, generic_mspct, summary_generic_spct, data.frame or a derived-class object.

Usage

setWhatMeasured(x, ...)

what_measured(x) <- value

# S3 method for default setWhatMeasured(x, what.measured, ...)

# S3 method for generic_spct setWhatMeasured(x, what.measured, ...)

# S3 method for summary_generic_spct setWhatMeasured(x, what.measured, ...)

# S3 method for data.frame setWhatMeasured(x, what.measured, ...)

# S3 method for generic_mspct setWhatMeasured(x, what.measured, ...)

Value

x

Arguments

x

a generic_spct object

...

Allows use of additional arguments in methods for other classes.

what.measured, value

a list

Methods (by class)

  • setWhatMeasured(default): default

  • setWhatMeasured(generic_spct): generic_spct

  • setWhatMeasured(summary_generic_spct): summary_generic_spct

  • setWhatMeasured(data.frame): data.frame

  • setWhatMeasured(generic_mspct): generic_mspct

See Also

Other measurement metadata functions: add_attr2tb(), getFilterProperties(), getHowMeasured(), getInstrDesc(), getInstrSettings(), getSoluteProperties(), getWhatMeasured(), getWhenMeasured(), getWhereMeasured(), get_attributes(), isValidInstrDesc(), isValidInstrSettings(), select_spct_attributes(), setFilterProperties(), setHowMeasured(), setInstrDesc(), setInstrSettings(), setSoluteProperties(), setWhenMeasured(), setWhereMeasured(), spct_attr2tb(), spct_metadata(), subset_attributes(), trimInstrDesc(), trimInstrSettings()

Examples

Run this code
my.spct <- sun.spct
what_measured(my.spct)
what_measured(my.spct) <- "Sun"
what_measured(my.spct)

Run the code above in your browser using DataLab