Learn R Programming

photobiology (version 0.11.3)

is_mole_based: 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)

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.

Arguments

x

an R object

See Also

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

Examples

Run this code
print("missing example")

Run the code above in your browser using DataLab