ir_new_ir | R Documentation |
ir
ir_new_ir
is the constructor function for objects of class
ir
.
An object of class ir
is a tibble::tbl_df()
with a
sample in each row and a list column containing spectra for each sample.
ir_new_ir(spectra, metadata = tibble::tibble())
spectra |
A named list in which each element contains spectral data
for one measurement. Each list element must be a |
metadata |
An optional |
An object of class ir
with the following columns:
A list column identical to spectra
.
Additional columns contained in metadata
.
ir_new_ir( spectra = ir_sample_data$spectra, metadata = ir_sample_data %>% dplyr::select(-spectra) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.