ir_bin | R Documentation |
ir_bin
bins intensity values of infrared spectra into bins of a
defined width or into a defined number of bins.
ir_bin(x, width = 10)
x |
An object of class |
width |
An integer value indicating the wavenumber width of each
resulting bin. Must be set to |
If the last bin contains fewer input values than the remaining bins, it will be dropped and a warning will be printed. If a wavenumber value exactly matches the boundary of a bin window, the respective intensity value will be assigned to both neighboring bins.
An object of class ir
where spectra have been binned.
x <- ir::ir_sample_data %>% ir_bin(width = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.