[R] Combine data frames using column names as "key"

jimineep jamesrperkins at hotmail.com
Mon Sep 22 16:32:25 CEST 2008


Hi guys,

Suppose I have 2 data frames ie:
         values
one    0.32
two    0.25
three  0.11

and 
         values
two    0.66
one    0.74
three  0.19

nb the first column is the row names in both cases

How can I combine them on the row names column? Ie to make something like


         values.1 values.2
one    0.32       0.74
two    0.25       0.66
three  0.11       0.19

I guess its data.frame or c.bind but I keep getting errors when I try to
combine them on row names...

Many many thanks,

Jim
-- 
View this message in context: http://www.nabble.com/Combine-data-frames-using-column-names-as-%22key%22-tp19609173p19609173.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list