ir_divide {ir} | R Documentation |
Divide infrared spectra or divide infrared spectra by a numeric value
Description
ir_divide
takes two objects of class ir
, x
and
y
, and divides their intensity values, or it takes one object of
class ir
, x
, and one numeric value, y
, and divides
all intensity values in x
by y
.
Usage
ir_divide(x, y)
Arguments
x |
An object of class |
y |
An object of class |
Value
x
where for each spectrum intensity values are divided by
the respective intensity values in y
(if y
is an object of
class ir
), or where all intensity values are divided by y
if
y
is a numeric value.
Examples
# division with y as ir object
x1 <-
ir::ir_divide(ir::ir_sample_data, ir::ir_sample_data)
x1 <-
ir::ir_divide(ir::ir_sample_data, ir::ir_sample_data[1, ])
# division with y being a numeric value
x2 <-
ir::ir_divide(ir::ir_sample_data, y = 20)
[Package ir version 0.2.1 Index]