## 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)
Run the code above in your browser using DataLab