Skip to content
Back to formatted view

Raw Message

Message-ID: <19609173.post@talk.nabble.com>
Date: 2008-09-22T15:34:37Z
From: jimineep
Subject: Combine data frames using column names as "key"

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.