| saturation_summary | R Documentation |
Finds the channels at the saturation limit of the detector, for each spectrum and for each wavelength. Saturated lines are clipped, so their intensity and width are wrong and they respond nonlinearly to concentration.
saturation_summary(x, limit = 65535, tolerance = 0)
x |
A numeric matrix or data frame of spectra, one per row, with the wavelengths as column names. |
limit |
The saturation limit of the detector, in counts. Default is 65535 (16-bit detectors). |
tolerance |
Channels within |
A list with two tibbles:
spectra: for each spectrum (row), the number n_saturated and
fraction of saturated channels;
channels: for each channel saturated in at least one spectrum, its
wavelength (from the column names; NA if they are not numeric),
column index, and the number and fraction of saturated spectra.
data(forageLIBS)
sat <- saturation_summary(forageLIBS[-(1:14)], limit = 65535)
sat$channels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.