View source: R/aiding_functions.R
linear interpolation: returns the y values matching the x values (vector) on the line through points pnt1 and pnt2 (both are vectors of length 2) possible error if both X-coordinates equal not checked or caught
1 | linterpol(x, pnt1, pnt2)
|
x |
x-coordinate for which corresponding y-coordinate is sought. |
pnt1 |
Point 1 |
pnt2 |
Point 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.