ir_to_plotftir {PlotFTIR} | R Documentation |
Convert 'ir' to 'PlotFTIR' data format
Description
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'.
Usage
ir_to_plotftir(ir_data, what = NA)
Arguments
ir_data |
data of class 'ir' from 'ir' package données de la classe 'ir' du paquet 'ir'. |
what |
which samples to convert to 'PlotFTIR' format. Defaults to all available spectra. les échantillons à convertir au format 'PlotFTIR'. Par défaut, tous les spectres disponibles |
Value
a data.frame compatible with 'PlotFTIR' functions
un data.frame compatible avec les fonctions 'PlotFTIR'.
See Also
[ir::ir_get_spectrum()] for information on how ir passes out data.
Examples
if (requireNamespace("ir", quietly = TRUE)) {
# Convert samples 1 & 4 to PlotFTIR format
ir_to_plotftir(ir::ir_sample_data, c(1, 4))
}
[Package PlotFTIR version 1.2.0 Index]