Get a List of points obtained by Interpolation in R Programming – spline() and splinefun() Function
In R programming,
splinefun() function is used to create a list of points obtained by interpolation. It performs cubic spline interpolation of given data points.
spline(x, y, method)
splinefun(x, y, method)
x, y: represents vectors giving the points for interpolation
method: represents the type of spline interpolation to be used
To know about more optional parameters of both the functions, use below command in console: