isValidInstrDesc {photobiology} | R Documentation |
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)
Arguments
x |
a |
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.
Value
A logical
vector of length one.
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
isValidInstrDesc(white_led.cps_spct)
isValidInstrDesc(white_body.spct)