[R] merging two dataframes

Timothy Bates timothy.c.bates at gmail.com
Wed Oct 26 16:43:57 CEST 2011


So when I do the merge on your example frames, I get the expected result.

But the example component dataframes you sent are already full of NAs, and there are no rows which are present in both data sets. So I think perhaps, that merge is just highlighting a problem that has its roots in your component data.

t


On 26 Oct 2011, at 1:16 PM, dividend wrote:
> I pasted wrong function, I have changed from "date1" to "date" (ignore that).
> I think it have to be something wrong with my data format. I can`t
> understand why it don't work. I know I can use by.x=.... and by.y=...., but
> since both datasets have the same variable name it should be unnecessary to
> do that. 



More information about the R-help mailing list