ir_clip {ir} | R Documentation |
Clips infrared spectra to new wavenumber ranges
Description
ir_clip
clips infrared spectra to a new, specified, wavenumber range
or multiple new specified wavenumber ranges.
Usage
ir_clip(x, range)
Arguments
x |
An object of class |
range |
A
If |
Value
An object of class ir
where spectra have been clipped.
Examples
## 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
range <-
data.frame(start = c(900, 1900), end = c(1000, 2200))
# clip
x <-
ir::ir_sample_data %>%
ir::ir_clip(range = range)
[Package ir version 0.2.1 Index]