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