Skip to content
Prev 5184 / 15274 Next

Fast way of replacing missing data points in xts object

I looks like with the Near and Far series you're doing linear 
interpolation, and with the VIX series you're doing  locf  interpolation.

Even if my glance at your code is incorrect, studying the way in which 
the na interpolation functions are implemented in zoo is likely to be 
your best way of improving your own code.
wob wu wrote: