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`.
ir_to_plotftir(ir_data, what = NA)a data.frame compatible with `PlotFTIR` functions
un data.frame compatible avec les fonctions `PlotFTIR`.
[ir::ir_get_spectrum()] for information on how ir passes out data.
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⁻¹\n Intensity type: absorbance
#> Number of samples: 2
#> Sample IDs: GN.11.389, GN.11.411