ir_flatten {ir} | R Documentation |
Converts objects of class ir
to objects of class ir_flat
Description
ir_flatten
takes and object of class ir
, extracts the
spectra
column and combines the spectra into an object of class
ir_flat
. Metadata are not retained during flattening.
Usage
ir_flatten(x, measurement_id = as.character(seq_len(nrow(x))))
Arguments
x |
An object of class |
measurement_id |
A character vector an element for each row in |
Value
An object of class ir_flat
.
Examples
x_flat <-
ir::ir_sample_data %>%
ir::ir_flatten()
[Package ir version 0.2.1 Index]