Skip to content
Prev 388611 / 398502 Next

Sin curve question

This is not excel-help, but to the best of my knowledge Excel interpolates with splines when you select curved point interpolation.

R, being primarily a science tool rather than a business tool, assumes you want to be precise about how new points are to be interpolated between original data points. Thus, the task of building the spline and deciding how close the points in that interpolation need to be is typically left to the user. If the user knows that the points are part of a periodic continuous function and extrapolation is desired, then choosing a fourier series may be a better choice than a spline. But the data you have provided is insufficient to support a fourier analysis, so there is some sophisticated math in between you and your goal unless you build in heuristics about how to interpolate within these points, or just live with whatever a spline function will give you... but the choice is yours to make.
On July 24, 2021 11:41:05 AM PDT, Thomas Subia via R-help <r-help at r-project.org> wrote: