It interpolates y value when a corresponding x value (xnew) does not exist within x vector
Usage
Interpol(x, y, xnew, Slope, b0, down = "Linear")
Arguments
x
vector values of x-axis, usually time
y
vector values of y-axis, usually concentration
xnew
new x point to be interpolated, usually new time point
Slope
slope of regression log(y) ~ x
b0
y value of just left point of xnew
down
either of "Linear" or "Log" to indicate the way to interpolate
Value
new x and y vector containing xnew and ynew point
Details
This function interpolate y value, if xnew is not in x vector.
If xnew is in x vector, it just returns the given x and y vector.
This function usually is called by IntAUC function
Returned vector is sorted in the order of increasing x values.