gradient_numeric | R Documentation |
Simple caluclation of gradient between points.
gradient_numeric(x, y)
x |
steps / independent variable |
y |
observed data points / response variable |
Matrix showing the gradient values between points.
The x positions of gradient values are returned as the middle point between the steps.
Note that nrow(gradient) = length(x)-1
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.