Functions to query whether an object is of a given type of spectrum.
Usage
is.generic_spct(x)
is.raw_spct(x)
is.calibration_spct(x)
is.cps_spct(x)
is.source_spct(x)
is.response_spct(x)
is.filter_spct(x)
is.reflector_spct(x)
is.object_spct(x)
is.solute_spct(x)
is.chroma_spct(x)
is.any_spct(x)
Value
A logical value, TRUE
if the argument passed to x
is an
object of the queried type of spectrum and FALSE
otherwise.
Note
Derived types also return TRUE
for a query for a base type such
as generic_spct
, following R's practice.
Examples
is.source_spct(sun.spct)
#> [1] TRUE
is.filter_spct(sun.spct)
#> [1] FALSE
is.generic_spct(sun.spct)
#> [1] TRUE
is.generic_spct(sun.spct)
#> [1] TRUE
is.source_spct(sun.spct)
#> [1] TRUE
is.filter_spct(sun.spct)
#> [1] FALSE
is.generic_spct(sun.spct)
#> [1] TRUE
is.generic_spct(sun.spct)
#> [1] TRUE