ir_stack | R Documentation |
ir_stack
takes a matrix or data frame with infrared spectra and
converts it into a list column corresponding to the column spectra
in
objects of class ir
.
ir_stack(x)
x |
A matrix or data frame with a first column ( |
A tibble::tibble()
with the stacked spectra in column spectra
.
# from data frame
x1 <-
ir::ir_sample_data |>
ir::ir_flatten() |>
ir::ir_stack()
# from matrix
x2 <-
ir::ir_sample_data |>
ir::ir_flatten() |>
as.matrix() |>
ir::ir_stack()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.