search for: iandgow

Displaying 1 result from an estimated 1 matches for "iandgow".

Did you mean: andnow
2011 May 16
0
Fwd: Re: rbind with partially overlapping column names
...merge(all=TRUE,...) will work: df1$w <- 1:nrow(df1) df2$w <- 1:nrow(df2) + nrow(df1) df3 <- merge(df1, df2, all=TRUE)[c("a","b","c")] Peter Ehlers > > Thanks again. > > Jonathan > > On Mon, May 16, 2011 at 12:28 AM, Ian Gow<iandgow at gmail.com> wrote: > >> That approach relies on df1 and df2 not having overlapping values in b. >> Slight variation in df2 gives different results: >> >>> df1<- data.frame(a=c("A","A"),b=c("B","B")) >>> df2<-...