calc_linear_coefs | R Documentation |
Calculate coefficients for linear interpolation
calc_linear_coefs(x, y)
x |
A numeric vector with independent values of the original function. |
y |
A numeric vector with dependent values of the original function. |
A numeric vector with slope coefficients for the linear interpolation of the original function. This vector has a length one less that the input vectors. The slope is for the section starting at that location in the x input vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.