R: Query if a spectrum contains absorbance or transmittance data

is_absorbance_based {photobiology} | R Documentation

## Query if a spectrum contains absorbance or transmittance data

### Description

Functions to check if an filter spectrum contains spectral absorbance data or spectral transmittance data.

### Usage

    is_absorbance_based(x)

    is_transmittance_based(x)

### Arguments

`x` | an R object

### Value

`is_absorbance_based` returns TRUE if its argument is a `filter_spct` object that contains spectral absorbance data and FALSE if it does not contain such data, but returns NA for any other R object, including those belonging other `generic_spct`-derived classes.

`is_transmittance_based` returns TRUE if its argument is a `filter_spct` object that contains spectral transmittance data and FALSE if it does not contain such data, but returns NA for any other R object, including those belonging other `generic_spct`-derived classes.

### See Also

Other query units functions: `is_photon_based`

### Examples

    is_absorbance_based(polyester.spct)
    my.spct <- T2A(polyester.spct)
    is.filter_spct(my.spct)
    is_absorbance_based(my.spct)

    is_transmittance_based(polyester.spct)

[Package photobiology version 0.9.21 Index]