rowwise | R Documentation |
Private methods for collections of spectra. Applies a function at each wavelength across all the spectra in the collection.
rowwise_filter(
x,
.fun,
col.name.tag = "",
.fun.name = "Summary of",
w.length.out = NULL,
...
)
rowwise_source(
x,
.fun,
col.name.tag = "",
.fun.name = "Summary of",
w.length.out = NULL,
...
)
rowwise_response(
x,
.fun,
col.name.tag = "",
.fun.name = "Summary of",
w.length.out = NULL,
...
)
rowwise_reflector(
x,
.fun,
col.name.tag = "",
.fun.name = "Summary of",
w.length.out = NULL,
...
)
rowwise_calibration(
x,
.fun,
col.name.tag = "",
.fun.name = "Summary of",
w.length.out = NULL,
...
)
rowwise_cps(
x,
.fun,
col.name.tag = "",
.fun.name = "Summary of",
w.length.out = NULL,
...
)
rowwise_raw(
x,
.fun,
col.name.tag = "",
.fun.name = "Summary of",
w.length.out = NULL,
...
)
x |
An R object. Currently this package defines methods for collections of spectral objects. |
.fun |
An R function or a list of functions. |
col.name.tag |
character Vector of extensions to paste to default column
name for the output from each of the functions. If |
.fun.name |
character string used to set what.measured attribute. |
w.length.out |
numeric vector of wavelengths (nanometres). |
... |
Arguments passed to .fun. |
Omission of NAs is done separately at each wavelength. Interpolation is
applied, so spectra in x
do not need to share the same set of
wavelengths. When defining
new public functions using these utility functions make sure to return data
that is valid for the class of spectral object returned!!
Objects of classes raw_spct
and cps_spct
can contain data
from multiple scans acquired with the same instrument, thus at the same set
of wave lengths.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.