View source: R/spct.operators.r
T2A | R Documentation |
Function that converts transmittance (fraction) into absorbance (a.u.).
T2A(x, action, byref, clean, ...)
## Default S3 method:
T2A(x, action = NULL, byref = FALSE, ...)
## S3 method for class 'numeric'
T2A(x, action = NULL, byref = FALSE, clean = TRUE, ...)
## S3 method for class 'filter_spct'
T2A(x, action = "add", byref = FALSE, clean = TRUE, ...)
## S3 method for class 'filter_mspct'
T2A(
x,
action = "add",
byref = FALSE,
clean = TRUE,
...,
.parallel = FALSE,
.paropts = NULL
)
x |
an R object |
action |
character Allowed values "replace" and "add" |
byref |
logical indicating if new object will be created by reference or by copy of x |
clean |
logical replace off-boundary values before conversion |
... |
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. |
A copy of x
with a column A
added and other columns
possibly deleted except for w.length
. If action = "replace"
,
in all cases, the additional columns are removed, even if no column needs
to be added.
T2A(default)
: Default method for generic function
T2A(numeric)
: Method for numeric vectors
T2A(filter_spct)
: Method for filter spectra
T2A(filter_mspct)
: Method for collections of filter spectra
Other quantity conversion functions:
A2T()
,
Afr2T()
,
T2Afr()
,
any2T()
,
as_quantum()
,
e2qmol_multipliers()
,
e2quantum_multipliers()
,
e2q()
,
q2e()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.