Re: [R] Merging two data frames with different columns names

2012-04-14 Thread Pete Brecknock
Peterso wrote > > Uwe: > > I was actually trying to stack one table on top of the other. All column > names are the same except for the Part1 and Part 2. My final table should > look like the table below. Maybe it is possible to change the names of > Part1 and Part 2 to Part? > > A B C Part >

Re: [R] Merging two data frames with different columns names

2012-04-14 Thread Uwe Ligges
I guess you just want one data.frame with the columns part1 and part2? Then: merge(part1, part2) should do thr trick. If you aim at something different, please explain you expected result. Uwe Ligges On 14.04.2012 01:33, Johnny Liseth wrote: I am trying to merge two data frames, but one of t

[R] Merging two data frames with different columns names

2012-04-13 Thread Johnny Liseth
I am trying to merge two data frames, but one of the column headings are different in the two frames. How can I rjoin or rbind the tho frames? Johnny # Generate 2 blocks by confounding on abc d1 <- conf.design(c(1,1,1), p=2, block.name="blk", treatment.names = c("A","B","C")) d2 <- conf.design(c(