Hi

 

I have probably a very simple question but I'm going crazy trying to find
the solution.

 

I have two data.frames with headers and I'm doing an intersection between
them by names, such that the intersected data.frames are returned by:
df1[intersect(names (df1), names(df2))] and the same for df2

 

Now, I want to have all the opposite data that did not intersect. I tried to
do: df1[-intersect(names (df1), names(df2))]  and some other stuff but it
didn't work.

 

Any ideas?

 

Thanks, S.B.


	[[alternative HTML version deleted]]

