Open ben519 opened 7 years ago
Another example from SO: OP only cares about the first match within 30 days here.
The current alternative (probably what Ben had in mind...) is to sort, join with on = .(v > v), mult = "first"
, convert to NA if x.v - i.v > 30
. I guess that's less efficient than a roll could be.
I happen to need a non-equi join combined with a rolling join. Something like
I can get around this for now, but I think it'd be a cool new feature.