ir_clip | R Documentation |
ir_clip
clips infrared spectra to a new, specified, wavenumber range
or multiple new specified wavenumber ranges.
ir_clip(x, range, return_ir_flat = FALSE)
x |
An object of class |
range |
A
If |
return_ir_flat |
Logical value. If |
An object of class ir
(or ir_flat
, if return_ir_flat = TRUE
)
where spectra have been clipped.
## clipping with one range
# define clipping range
range <-
data.frame(start = 900, end = 1000)
# clip
x <-
ir::ir_sample_data |>
ir::ir_clip(range = range)
## clipping with mutliple ranges
# define clipping range
range <-
data.frame(start = c(900, 1900), end = c(1000, 2200))
# clip
x <-
ir::ir_sample_data |>
ir::ir_clip(range = range)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.