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.
Examples
x_flat <-
ir::ir_sample_data |>
ir::ir_flatten()