interpolate.multiXY {powdR} | R Documentation |
Interpolate a multiXY object onto a given 2theta scale.
Description
interpolate
takes a multiXY
object, which may contain
XY data frames with varying 2theta scales, and interpolates all
data frames onto the same scale using cubic splines.
Usage
## S3 method for class 'multiXY'
interpolate(x, new_tth, ...)
Arguments
x |
a |
new_tth |
a numeric vector of the new 2theta scale. |
... |
other arguments |
Value
a multiXY
object.
Examples
data(rockjock_mixtures)
#Define a new 2theta scale:
tth <- seq(10, 60, 0.04)
#interpolate data onto new scale
i1 <- interpolate(rockjock_mixtures, new_tth = tth)
[Package powdR version 1.3.0 Index]