A method to compute the sum of values across members of a collections of spectra. Computes the sum at each wavelength across all the spectra in the collection returning a spectral object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
s_sum(x, na.rm, ...) ## Default S3 method: s_sum(x, na.rm = FALSE, ...) ## S3 method for class 'filter_mspct' s_sum(x, na.rm = FALSE, ...) ## S3 method for class 'source_mspct' s_sum(x, na.rm = FALSE, ...) ## S3 method for class 'response_mspct' s_sum(x, na.rm = FALSE, ...) ## S3 method for class 'reflector_mspct' s_sum(x, na.rm = FALSE, ...) ## S3 method for class 'calibration_mspct' s_sum(x, na.rm = FALSE, ...)
An R object. Currently this package defines methods for collections of spectral objects.
logical. A value indicating whether NA values should be stripped before the computation proceeds.
Further arguments passed to or from other methods.
x is a collection spectral of objects, such as a
"filter_mspct" object, the returned object is of same class as the
members of the collection, such as "filter_spct", containing the sum
of the spectra.
Omission of NAs is done separately at each wavelength. Interpolation is
not applied, so all spectra in
x must share the same set of
A sum of transmitances or reflectances is no longer a well defined physical quanttiy, and these sum operations return an object of class generic_spct.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.