interpolate_line | R Documentation |
Interpolate new y-values using linear interpolation
interpolate_line(x, y, new_x)
x |
A numeric vector with the x values of the original function. |
y |
A numeric vector with the y values of the original function. This should be the same length as x. |
new_x |
A numeric value providing the new x values at which you want to interpolate y values. |
A numeric vector with the interpolated values of y at each of the new x values provided by the new_x input.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.