interpLin | R Documentation |
A nimbleFunction
emulating BUGS/JAGS's interp.lin.
interpLin(z, x, y)
z |
value where the interpolation take place |
x |
numeric vector giving the coordinates of the points to be interpolated. |
y |
numeric vector giving the coordinates of the points to be interpolated. |
interpolated value
data(intcal20)
interpLin(4500,intcal20$CalBP,intcal20$C14Age)
# equivalent to:
approx(x=intcal20$CalBP,y=intcal20$C14Age,xout=4500)$y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.