Skip to content
Prev 362708 / 398498 Next

about interpolating data in r

As William was answered;

with(df, approx(x=time, y=A, xout=seq(min(time, na.rm =T), max(time, na.rm = T), by="days")))

will help you interpolate linearly between knwon values even column has NA?s.