Description Usage Arguments Value
Linear interpolation between two points on a curve. May be faster than base R function since only two points are used for interpolation.
1 | lerp(x, x1, x2, y1, y2)
|
x |
Input value to interpolate corresponding location on a curve. |
x1 |
Lower x bound for curve y~x. |
x2 |
Upper x bound for curve y~x. |
y1 |
Lower y value given x1 for curve y~x. |
y2 |
Upper y value given x2 for curve y~x. |
An interpolated value given two points on a curve.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.