any2T: Convert filter quantities.

Description Usage Arguments Details Value See Also Examples

View source: R/spct.operators.r

Description

Functions that convert or add related physical quantities to filter_spct or object_spct objects. transmittance (fraction) into absorptance (fraction).

Usage

1
2
3
4
5
any2T(x, action = "add", clean = FALSE)

any2A(x, action = "add", clean = FALSE)

any2Afr(x, action = "add", clean = FALSE)

Arguments

x

an filter_spct or a filter_mspct object.

action

character Allowed values "replace" and "add".

clean

logical replace off-boundary values before conversion

Details

These functions are dispatchers for A2T, Afr2T, T2A, and T2Afr. The dispatch is based on the names of the variables stored in x. They do not support in-place modification of x.

Value

A copy of x with the columns for the different quantities added or replaced. If action = "replace", in all cases, the additional columns are removed, even if no column needs to be added.

See Also

Other quantity conversion functions: A2T(), Afr2T(), T2Afr(), T2A(), as_quantum(), e2qmol_multipliers(), e2quantum_multipliers(), e2q(), q2e()

Examples

1
2
3

photobiology documentation built on April 4, 2021, 5:05 p.m.