interpolate.powdRlib {powdR}R Documentation

Interpolate a powdRlib object onto a given 2theta scale.

Description

interpolate takes a powdRlib object and interpolates the data onto a new 2theta scale using a cubic spline.

Usage

## S3 method for class 'powdRlib'
interpolate(x, new_tth, ...)

Arguments

x

a powdRlib object.

new_tth

a numeric vector of the new 2theta scale.

...

other arguments

Value

a powdRlib object.

Examples

data(minerals)

#Define a new 2theta scale:
tth <- seq(10, 60, 0.04)

#interpolate data onto new scale
i1 <- interpolate(minerals, new_tth = tth)

[Package powdR version 1.3.0 Index]