is_mole_based: Query if a spectrum contains mole or mass based data

View source: R/spct.classes.r

is_mole_basedR Documentation

Query if a spectrum contains mole or mass based data

Description

Functions to check if an solute attenuation spectrum contains coefficients on expressed on mole of mass base.

Usage

is_mole_based(x)

is_mass_based(x)

Arguments

x

an R object

Value

is_mole_based returns TRUE if its argument is a solute_spct object that contains spectral K.mole data and FALSE if it contains K.mass data, but returns NA for any other R object, including those belonging other generic_spct-derived classes. is_mass_based returns the complement of is_mole_based.

See Also

Other query units functions: is_absorbance_based(), is_photon_based()

Examples

print("missing example")


photobiology documentation built on Oct. 21, 2023, 1:06 a.m.