powered by
Linear interpolation
interp.b(xs, ys)
Output description (simple).
Vector number of size 3
Vector number of size 3, with second position empty or NA
Christian Salas.
Linear interpolation for three data of x and y only works if the second y is missing.
x<-c(1,2,3) y<-c(4,NA,6) interp.b(x,y)
Run the code above in your browser using DataLab