ir_bc_sg | R Documentation |
ir_bc_sg
computes a smoothed version of spectra using
ir_smooth()
with method = "sg"
and uses this as baseline
which is subtracted from the spectra to perform a baseline correction
\insertCiteLasch.2012ir.
ir_bc_sg(x, ..., return_bl = FALSE)
x |
An object of class |
... |
Arguments passed to |
return_bl |
A logical value indicating if for each spectrum the baseline
should be returned instead of the corrected intensity values
( |
An object of class ir
with the baseline corrected spectra and,
if returnbl = TRUE
, the baselines.
x <- ir::ir_sample_data %>% ir::ir_bc_sg(p = 3, n = 199, ts = 1, m = 0, return_bl = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.