ir_scale | R Documentation |
ir
objectScales spectra in an ir
object
ir_scale(x, center = TRUE, scale = TRUE, return_ir_flat = FALSE)
x |
An object of class |
center |
either a logical value or numeric-alike vector of length
equal to the number of columns of |
scale |
either a logical value or a numeric-alike vector of length
equal to the number of columns of |
return_ir_flat |
Logical value. If |
x
where spectra have been scaled, i.e. from each intensity value,
the average across all spectra is subtracted (when center
is a logical
value), or the respective value in center
is subtracted (when center
is
numerical), and each intensity value is divided by the standard deviation of
the intensity values at this wavenumber across all spectra (when scale
is a
logical value), or the respective value in scale
(when scale
is
numerical). NA
s are omitted during this process.
ir_sample_data |>
ir_scale() |>
plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.