powered by
A nimbleFunction emulating BUGS/JAGS's interp.lin.
nimbleFunction
interpLin(z, x, y)
interpolated value
value where the interpolation take place
numeric vector giving the coordinates of the points to be interpolated.
data(intcal20) interpLin(4500,intcal20$CalBP,intcal20$C14Age) # equivalent to: approx(x=intcal20$CalBP,y=intcal20$C14Age,xout=4500)$y
Run the code above in your browser using DataLab