Method to set by reference the "what.measured" attribute of an R
object.
Usage
setWhatMeasured(x, ...)
what_measured(x) <- value
# Default S3 method
setWhatMeasured(x, what.measured, ...)
# S3 method for class 'generic_spct'
setWhatMeasured(x, what.measured, ...)
# S3 method for class 'summary_generic_spct'
setWhatMeasured(x, what.measured, ...)
# S3 method for class 'data.frame'
setWhatMeasured(x, what.measured, ...)
# S3 method for class 'generic_mspct'
setWhatMeasured(x, what.measured, ...)Details
This function alters x itself by reference and in addition
returns x invisibly. If x does not belong to one of the
supported classes, x is not modified.
Methods (by class)
setWhatMeasured(default): defaultsetWhatMeasured(generic_spct): generic_spctsetWhatMeasured(summary_generic_spct): summary_generic_spctsetWhatMeasured(data.frame): data.framesetWhatMeasured(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
my.spct <- sun.spct
what_measured(my.spct)
#> [1] "sunlight, simulated"
what_measured(my.spct) <- "Sun"
what_measured(my.spct)
#> [1] "Sun"
what_measured(my.spct) <- NULL
what_measured(my.spct)
#> [1] NA
