[R] biding rows while merging at the same time

2010-11-03 Thread Dimitri Liakhovitski
Hello! I have 2 data frames like this (well, actually, I have 200 of them): df1-data.frame(location=c(loc 1,loc 2,loc 3),date=c(1/1/2010,1/1/2010,1/1/2010), a=1:3,b=11:13,c=111:113) df2-data.frame(location=c(loc 1,loc 2,loc 3),date=c(2/1/2010,2/1/2010,2/1/2010), a=4:6,c=114:116,d=c(1,11,111))

Re: [R] biding rows while merging at the same time

2010-11-03 Thread Dimitri Liakhovitski
Never mind - I found it in reshape package: rbind.fill I wonder if it's still in reshape2. Dimitri On Wed, Nov 3, 2010 at 5:34 PM, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com wrote: Hello! I have 2 data frames like this (well, actually, I have 200 of them):

Re: [R] biding rows while merging at the same time

2010-11-03 Thread Erik Iverson
Just merge(df1, df2, all = TRUE) does it, yes? Dimitri Liakhovitski wrote: Hello! I have 2 data frames like this (well, actually, I have 200 of them): df1-data.frame(location=c(loc 1,loc 2,loc 3),date=c(1/1/2010,1/1/2010,1/1/2010), a=1:3,b=11:13,c=111:113) df2-data.frame(location=c(loc

Re: [R] biding rows while merging at the same time

2010-11-03 Thread David Winsemius
On Nov 3, 2010, at 5:38 PM, Dimitri Liakhovitski wrote: Never mind - I found it in reshape package: rbind.fill I wonder if it's still in reshape2. Look in plyr. -- David. Dimitri __ R-help@r-project.org mailing list