ir_new_ir_flat {ir} | R Documentation |
Creates an object of class ir_flat
Description
ir_new_ir_flat
is the constructor function for objects of class ir_flat
.
An object of class ir_flat
is a data.frame
where the first
column ("x"
) contains unique x values of spectra (e.g. wavenumbers)
and all remaining columns represent intensity values from spectra
corresponding to the x values.
Usage
ir_new_ir_flat(x)
Arguments
x |
A |
Value
An object of class ir_flat
.
Examples
x_flat <-
ir::ir_sample_data %>%
ir::ir_flatten()
[Package ir version 0.2.1 Index]