Functions to check if an object is of a given type of spectrum, or coerce it if possible.
Usage
is.summary_generic_spct(x)
is.summary_raw_spct(x)
is.summary_cps_spct(x)
is.summary_source_spct(x)
is.summary_response_spct(x)
is.summary_filter_spct(x)
is.summary_reflector_spct(x)
is.summary_object_spct(x)
is.summary_solute_spct(x)
is.summary_chroma_spct(x)
is.any_summary_spct(x)
Value
These functions return TRUE
if its argument is a of the queried type
of spectrum and FALSE
otherwise.
Examples
sm <- summary(sun.spct)
is.summary_source_spct(sm)
#> [1] TRUE