View source: R/score_calculator.R
| approxfun2 | R Documentation |
Creates a closure that performs 2D interpolation over a grid using pracma::interp2.
approxfun2(x, y, Z, method = "linear")
x |
Numeric vector. Grid values along the x-axis. |
y |
Numeric vector. Grid values along the y-axis. |
Z |
Matrix. Grid values corresponding to (x, y). |
method |
Character. Interpolation method; default is "linear". |
A function that takes 'x' and 'y' (e.g. for age and height) vectors and returns interpolated values for 'z'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.