50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


photobiology (version 0.13.0)

isValidInstrDesc: Check the "instr.desc" attribute

Description

Function to validate the "instr.settings" attribute of an existing generic_spct object or summary_generic_spct object.

Usage

isValidInstrDesc(x)

Value

A logical vector of length one.

Arguments

x

a generic_spct object or a summary_generic_spct object.

Details

Test if at least one of instrument name (field spectrometer.name) or serial number (field spectrometer.sn) is found in the value of the R attribute "instr.desc" of x. FALSE is silently returned if x does not belong to a class derived from class generic_spct or from class summary_generic_spct, or if it is derived from these classes but the attribute is not set.

See Also

Other measurement metadata functions: add_attr2tb(), getFilterProperties(), getHowMeasured(), getInstrDesc(), getInstrSettings(), getSoluteProperties(), getWhatMeasured(), getWhenMeasured(), getWhereMeasured(), get_attributes(), isValidInstrSettings(), select_spct_attributes(), setFilterProperties(), setHowMeasured(), setInstrDesc(), setInstrSettings(), setSoluteProperties(), setWhatMeasured(), setWhenMeasured(), setWhereMeasured(), spct_attr2tb(), spct_metadata(), subset_attributes(), trimInstrDesc(), trimInstrSettings()

Examples

Run this code
isValidInstrDesc(white_led.cps_spct)
isValidInstrDesc(white_body.spct)

Run the code above in your browser using DataLab