Displaying 1 result from an estimated 1 matches for "metacolumn".
Did you mean:
getcolumn
2006 Sep 23
2
Question about merge()
If I want to do a join based on *two* matching fields in two data frames,
can merge() handle this? It appears to only handle a single matching column
-- do I need to make a "metacolumn" or is there some way to do this? E.g.:
Dataframe 1 contains columns A,B,C and Dataframe 2 contains A,B,D
I want an output A,B,C,D which places C and D together if A and B match
(otherwise, make two new rows, e.g. Ax,Bx,Cx,nodata and Ay,By,nodata,Dy)
--j
--
Jonathan A. Greenberg, PhD
NRC...