Re: [R] join columns

2011-08-10 Thread Henrique Dallazuanna
Try this: merge(q1, q2, all = TRUE) On Wed, Aug 10, 2011 at 12:04 PM, Anthony Ching Ho Ng wrote: > Dear R-help, > > I wonder if you could give me some suggestions in how to do a union > join of two data frames as follow: > -> union join the common column, and insert a 0 if one is missing. > > I

Re: [R] join columns

2011-08-10 Thread David Winsemius
On Aug 10, 2011, at 11:04 AM, Anthony Ching Ho Ng wrote: Dear R-help, I wonder if you could give me some suggestions in how to do a union join of two data frames as follow: -> union join the common column, and insert a 0 if one is missing. I made a function to perform the following, and I kno

[R] join columns

2011-08-10 Thread Anthony Ching Ho Ng
Dear R-help, I wonder if you could give me some suggestions in how to do a union join of two data frames as follow: -> union join the common column, and insert a 0 if one is missing. I made a function to perform the following, and I know it may not that quite welly written, but it works. Any sug