Skip to content
Prev 82827 / 398503 Next

<no subject>

On 12/14/05 9:14 PM, "Marco Blanchette" <mblanche at berkeley.edu> wrote:

            
table1 <- data.frame( CGID=c("CG_1","CG_3","CG_2", "CG_4", "CG_5"),
diff=c(3,5,6,4,3))

 table2 <- data.frame( CGID=c("CG_2","CG_3","CG_4", "CG_1", "CG_5"),
diff=c(4,6,3,9,10))

 table.merged <- merge(table1,table2,by.x=1,by.y=1)

In other words, use a data.frame here and then use merge.

Does that do it?

Sean