Learn R Programming

photobiology (version 0.11.4)

setHowMeasured: Set the "how.measured" attribute

Description

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

Usage

setHowMeasured(x, ...)

how_measured(x) <- value

# S3 method for default setHowMeasured(x, how.measured, ...)

# S3 method for generic_spct setHowMeasured(x, how.measured, ...)

# S3 method for summary_generic_spct setHowMeasured(x, how.measured, ...)

# S3 method for data.frame setHowMeasured(x, how.measured, ...)

# S3 method for generic_mspct setHowMeasured(x, how.measured, ...)

Value

x modified by reference.

Arguments

x

a R object

...

Allows use of additional arguments in methods for other classes.

how.measured, value

a list or a character string.

Methods (by class)

  • setHowMeasured(default): default

  • setHowMeasured(generic_spct): generic_spct

  • setHowMeasured(summary_generic_spct): summary_generic_spct

  • setHowMeasured(data.frame): data.frame

  • setHowMeasured(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(), setInstrDesc(), setInstrSettings(), setSoluteProperties(), setWhatMeasured(), setWhenMeasured(), setWhereMeasured(), spct_attr2tb(), spct_metadata(), subset_attributes(), trimInstrDesc(), trimInstrSettings()

Examples

Run this code

my.spct <- sun.spct
how_measured(my.spct)
how_measured(my.spct) <- "simulated with a radiation transfer model"
how_measured(my.spct)

Run the code above in your browser using DataLab