e2q {photobiology}R Documentation

Convert energy-based quantities into photon-based quantities.

Description

Function that converts spectral energy irradiance into spectral photon irradiance (molar).

Usage

e2q(x, action, byref, ...)

## Default S3 method:
e2q(x, action = "add", byref = FALSE, ...)

## S3 method for class 'source_spct'
e2q(x, action = "add", byref = FALSE, ...)

## S3 method for class 'response_spct'
e2q(x, action = "add", byref = FALSE, ...)

## S3 method for class 'source_mspct'
e2q(x, action = "add", byref = FALSE, ...,
  .parallel = FALSE, .paropts = NULL)

## S3 method for class 'response_mspct'
e2q(x, action = "add", byref = FALSE, ...,
  .parallel = FALSE, .paropts = NULL)

Arguments

x

an R object

action

a character string

byref

logical indicating if new object will be created by reference or by copy of x

...

not used in current version

.parallel

if TRUE, apply function in parallel, using parallel backend provided by foreach

.paropts

a list of additional options passed into the foreach function when parallel computation is enabled. This is important if (for example) your code relies on external data or packages: use the .export and .packages arguments to supply them so that all cluster nodes have the correct environment set up for computing.

Methods (by class)

See Also

Other quantity conversion functions: A2T, T2Afr, T2A, T2T, as_quantum, e2qmol_multipliers, e2quantum_multipliers, q2e


[Package photobiology version 0.9.21 Index]