Re: [R] Combining two data frames

2014-09-19 Thread Adrian Johnson
thanks it works I guess: merge(b1,b2,by='Subject') On Fri, Sep 19, 2014 at 5:03 PM, Uwe Ligges wrote: > See ?merge > > Best, > Uwe Ligges > > > On 19.09.2014 22:58, Adrian Johnson wrote: >> >> Hi: >> Appreciate if I could get some help. >> >> I have two data frames. >> >> I want to combine these

Re: [R] Combining two data frames

2014-09-19 Thread Uwe Ligges
See ?merge Best, Uwe Ligges On 19.09.2014 22:58, Adrian Johnson wrote: Hi: Appreciate if I could get some help. I have two data frames. I want to combine these two dfs bases on first column. df1 : SubjectG1 G2G3 A 10 1 0 B 20 2

Re: [R] combining two data frames (different question)

2008-06-19 Thread John Kane
This depends on the id column. If all the id's are the same and in the exact same order then look at ?cbind. If you have different numbers or different ids in the two id columns see ?merge --- On Tue, 6/17/08, calundergrad <[EMAIL PROTECTED]> wrote: > From: calundergrad <[EMAIL PROTECTED]> >

Re: [R] combining two data frames (different question)

2008-06-18 Thread [EMAIL PROTECTED]
Try > ?merge Andrey __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] combining two data frames (different question)

2008-06-18 Thread jim holtman
?merge On Tue, Jun 17, 2008 at 6:40 PM, calundergrad <[EMAIL PROTECTED]> wrote: > > i have two data frames. One data frame contains one column with the > identificication number of a geographic place. The other columns are just > some data about the corresponding geographic place. The other dat

Re: [R] combining two data frames

2008-06-17 Thread Peng Jiang
Hi, haibing . you should try rbind or cbind. Type >help(rbind) or >? rbind in the command line . regards. On 2008-6-18, at 上午6:33, calundergrad wrote: i know this is a very simple question but i have two data frames (one of which is a continuation of the first data frame) and i was just