convert data from the `ir` package to a structure that will work with `PlotFTIR`.
convertir les données du paquet `ir` en une structure qui fonctionnera avec `PlotFTIR`.
Value
a data.frame compatible with `PlotFTIR` functions
un data.frame compatible avec les fonctions `PlotFTIR`.
Examples
if (requireNamespace("ir", quietly = TRUE)) {
# Convert samples 1 & 4 to PlotFTIR format
ir_to_plotftir(ir::ir_sample_data, c(1, 4))
}
#> PlotFTIR data:
#> Spectral range: 650 - 4000 cm⁻¹
#> Resolution: 1 cm⁻¹
#> Intensity type: absorbance
#> Number of samples: 2
#> Sample IDs: GN.11.389, GN.11.411
