View source: R/utility_general.R
Interpolates out equally spaced values by fitting a cubic spline on given points and matching the endpoints. Often used to redefine a curve with warped time axis on an even time basis. Note that quality of interpolation decreases with inadequate density of defining points.
1 | interp_spline(x, y, nout = length(y))
|
x, y |
coordinate vectors on which to fit a cubic spline. |
nout |
number of points to interpolate out |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.