Skip to content
Prev 44553 / 398502 Next

efficient matrix approx

Thomas Petzoldt <petzoldt at rcs.urz.tu-dresden.de> writes:
I wouldn't know about efficiency, but the last bit of code is
equivalent to

app <- lapply(x[-1], approx, x=x$time, xout=t)
data.frame(time=t,lapply(app,"[[","y"))

which should at least be somewhat easier to read...