ir_interpolate {ir}R Documentation

Interpolates intensity values of infrared spectra in an ir object for new wavenumber values

Description

ir_interpolate interpolates intensity values for infrared spectra for new wavenumber values.

Usage

ir_interpolate(x, start = NULL, dw = 1)

Arguments

x

An object of class ir.

start

A numerical value indicating the start wavenumber value relative to which new wavenumber values will be interpolated. The value is not allowed to be < floor(firstvalue) - 2, whereby firstvalue is the first wavenumber value within x. If start = NULL, floor(firstvalue) will be used as first wavenumber value.

dw

A numerical value representing the desired wavenumber value difference between adjacent values.

Value

An object of class ir containing the interpolated spectra. Any NA values resulting from interpolation will be automatically dropped.

Examples

x <-
   ir::ir_sample_data %>%
   ir::ir_interpolate(start = NULL, dw = 1)


[Package ir version 0.2.1 Index]