photobiology (version 0.9.30)

getWhenMeasured: Get the "when.measured" attribute

Description

Function to read the "when.measured" attribute of an existing generic_spct or a generic_mspct.

Usage

getWhenMeasured(x, ...)

when_measured(x, ...)

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

# S3 method for generic_spct getWhenMeasured(x, ...)

# S3 method for summary_generic_spct getWhenMeasured(x, ...)

# S3 method for generic_mspct getWhenMeasured(x, ..., idx = "spct.idx")

Arguments

x

a generic_spct object

...

Allows use of additional arguments in methods for other classes.

idx

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

Value

POSIXct An object with date and time.

Methods (by class)

  • default: default

  • generic_spct: generic_spct

  • summary_generic_spct: summary_generic_spct

  • generic_mspct: generic_mspct

See Also

Other measurement metadata functions: getHowMeasured(), getInstrDesc(), getInstrSettings(), getWhatMeasured(), getWhereMeasured(), get_attributes(), isValidInstrDesc(), isValidInstrSettings(), select_spct_attributes(), setHowMeasured(), setInstrDesc(), setInstrSettings(), setWhatMeasured(), setWhenMeasured(), setWhereMeasured(), spct_attr2tb(), trimInstrDesc(), trimInstrSettings()

Examples

Run this code
# NOT RUN {
when_measured(sun.spct)

# }

Run the code above in your browser using DataCamp Workspace