-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathir_interpolate.Rd
34 lines (31 loc) · 1.17 KB
/
ir_interpolate.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ir_interpolate.R
\name{ir_interpolate}
\alias{ir_interpolate}
\title{Interpolates intensity values of infrared spectra in an \code{ir} object for new wavenumber values}
\usage{
ir_interpolate(x, start = NULL, dw = 1)
}
\arguments{
\item{x}{An object of class \code{\link[=ir_new_ir]{ir}}.}
\item{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 < \code{floor(firstvalue) - 2}, whereby \code{firstvalue} is the first
wavenumber value within \code{x}. If \code{start = NULL},
\code{floor(firstvalue)} will be used as first wavenumber value.}
\item{dw}{A numerical value representing the desired wavenumber value
difference between adjacent values.}
}
\value{
An object of class \code{ir} containing the interpolated spectra. Any
\code{NA} values resulting from interpolation will be automatically dropped.
}
\description{
\code{ir_interpolate} interpolates intensity values for infrared spectra for
new wavenumber values.
}
\examples{
x <-
ir::ir_sample_data \%>\%
ir::ir_interpolate(start = NULL, dw = 1)
}