Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rowwise

rowwise functions for collections of spectra


Description

Private methods for collections of spectra. Applies a function at each wavelength across all the spectra in the collection.

Usage

rowwise_filter(x, .fun, col.name.tag = "", .fun.name = "Summary of", ...)

rowwise_source(x, .fun, col.name.tag = "", .fun.name = "Summary of", ...)

rowwise_response(x, .fun, col.name.tag = "", .fun.name = "Summary of", ...)

rowwise_reflector(x, .fun, col.name.tag = "", .fun.name = "Summary of", ...)

rowwise_calibration(x, .fun, col.name.tag = "", .fun.name = "Summary of", ...)

rowwise_cps(x, .fun, col.name.tag = "", .fun.name = "Summary of", ...)

rowwise_raw(x, .fun, col.name.tag = "", .fun.name = "Summary of", ...)

Arguments

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 col.name.tag[1] != "", this forces the return of an object of class "generic_spct".

.fun.name

character string used to set what.measured attribute.

...

Arguments passed to .fun.

Note

Omission of NAs is done separately at each wavelength. Interpolation is not applied, so all spectra in x must 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. This functions are implemented for these classes only for the case when all member spectra contain data for a single scan, or spliced into a single column in the case of cps_spct members.


photobiology

Photobiological Calculations

v0.10.10
GPL (>= 2)
Authors
Pedro J. Aphalo [aut, cre] (<https://orcid.org/0000-0003-3385-972X>), Titta K. Kotilainen [ctb] (<https://orcid.org/0000-0002-2822-9734>), Glenn Davis [ctb], Agnese Fazio [ctb]
Initial release
2022-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.