powered by
XY
interpolate takes an XY object and interpolates the data onto a new 2theta scale using a cubic spline.
interpolate
# S3 method for XY interpolate(x, new_tth, ...)
an XY object.
a numeric vector of the new 2theta scale.
other arguments
# NOT RUN { data(rockjock_mixtures) #Define a new 2theta scale: tth <- seq(10, 60, 0.04) #interpolate data onto new scale i1 <- interpolate(rockjock_mixtures$Mix1, new_tth = tth) # }
Run the code above in your browser using DataLab