Method to set the "how.measured" attribute of an R object.
Usage
setHowMeasured(x, ...)
how_measured(x) <- value
# Default S3 method
setHowMeasured(x, how.measured, ...)
# S3 method for class 'generic_spct'
setHowMeasured(x, how.measured, ...)
# S3 method for class 'summary_generic_spct'
setHowMeasured(x, how.measured, ...)
# S3 method for class 'data.frame'
setHowMeasured(x, how.measured, ...)
# S3 method for class 'generic_mspct'
setHowMeasured(x, how.measured, ...)Methods (by class)
setHowMeasured(default): defaultsetHowMeasured(generic_spct): generic_spctsetHowMeasured(summary_generic_spct): summary_generic_spctsetHowMeasured(data.frame): data.framesetHowMeasured(generic_mspct): generic_mspct
Note
This function alters x itself by reference and in addition
returns x invisibly. If x is not an object of a supported
class, x is silently returned unchanged.
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
my.spct <- sun.spct
how_measured(my.spct)
#> [1] "Simulated using 'libRadtran'. Average for one hour, centred approximately on local solar noon."
how_measured(my.spct) <- "Simulated with a radiation transfer model"
how_measured(my.spct)
#> [1] "Simulated with a radiation transfer model"
how_measured(my.spct) <- NULL
how_measured(my.spct)
#> [1] NA
