lin_interpolation | R Documentation |
This function performs linear interpolation for a set of points.
lin_interpolation(xp, x0, x1, y0, y1)
xp |
A numeric vector of new x values at which to interpolate. |
x0 |
A numeric vector of original x values (starting points for interpolation). |
x1 |
A numeric vector of original x values (ending points for interpolation). |
y0 |
A numeric vector of original y values corresponding to x0. |
y1 |
A numeric vector of original y values corresponding to x1. |
A numeric vector of interpolated y values corresponding to xp
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.