[R] Merge data frames but prefer values in on

JiHO jo.lists at gmail.com
Mon Sep 14 19:18:52 CEST 2009


On 2009-September-11  , at 13:55 ,  wrote:

> Maybe:
>
> do.call(rbind, lapply(with(xy <- rbind(x, y), split(xy, list(a, b),  
> drop = TRUE)), tail, 1))
>
> On Fri, Sep 11, 2009 at 3:45 AM, jo <jo.lists at gmail.com> wrote:
> Thanks for the post-processing ideas. But is there any way to do that
> in one step?

Thanks but by "in one step" I meant within the merge, not in one post- 
processing step ;)

JiHO
---
http://maururu.net




More information about the R-help mailing list