50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


photobiology (version 0.13.0)

getHowMeasured: Get the "how.measured" attribute

Description

Method to read the "how.measured" attribute of an R object.

Usage

getHowMeasured(x, ...)

how_measured(x, ...)

# S3 method for default getHowMeasured(x, ...)

# S3 method for generic_spct getHowMeasured(x, ..., simplify = FALSE)

# S3 method for summary_generic_spct getHowMeasured(x, ..., simplify = FALSE)

# S3 method for data.frame getHowMeasured(x, ..., simplify = FALSE)

# S3 method for generic_mspct getHowMeasured(x, ..., idx = "spct.idx", simplify = FALSE)

Value

character vector An object containing a verbal description of the data.

Arguments

x

an R object.

...

Allows use of additional arguments in methods for other classes.

simplify

logical If all members share the same attribute value return one copy instead of a data.frame.

idx

character Name of the column with the names of the members of the collection of spectra.

Methods (by class)

  • getHowMeasured(default): default

  • getHowMeasured(generic_spct): generic_spct

  • getHowMeasured(summary_generic_spct): summary_generic_spct

  • getHowMeasured(data.frame): data.frame

  • getHowMeasured(generic_mspct): generic_mspct

See Also

Other measurement metadata functions: add_attr2tb(), getFilterProperties(), getInstrDesc(), getInstrSettings(), getSoluteProperties(), getWhatMeasured(), getWhenMeasured(), getWhereMeasured(), get_attributes(), isValidInstrDesc(), isValidInstrSettings(), select_spct_attributes(), setFilterProperties(), setHowMeasured(), 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)
how_measured(my.spct) <- NULL
how_measured(my.spct)

Run the code above in your browser using DataLab