Skip to content
Prev 6065 / 15274 Next

zoo: how to find for series x closest day in series y?

If the problem is to find y's at or greater in time than x's then we
can use this method:

window(na.locf(merge(x, y), fromLast = TRUE), index(x))


On Fri, Apr 23, 2010 at 9:04 AM, Matthieu Stigler
<matthieu.stigler at gmail.com> wrote: