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]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to