Linear interpolation between two data poins
Usage
lin_interpolation(x1, x2, y1, y2, x_is)
Arguments
- x1
x value of first data point
- x2
x value of second data point
- y1
y value of first data point
- y2
y value of second data point
- x_is
corresponding x value to the searched y value
Value
Y-Value to the corresponding x value in the unit of the other y values
Examples
lin_interpolation(x1 = 60, x2 = 90, y1 = 30, y2 = 55, x_is = 70)
#> [1] 38.33333