[R] How to locate the difference from two data frames
Charles C. Berry
cberry at tajo.ucsd.edu
Thu Apr 8 05:46:19 CEST 2010
On Wed, 7 Apr 2010, Jun Shen wrote:
> Dear all,
>
> I understand identical (a,b) will tell me if a and b are exactly the same or
> not. But what if they are different, is there anyway to tell which
> element(s) are different? Thanks.
which( a != b, arr.ind = TRUE)
HTH,
Chuck
>
> Jun
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
More information about the R-help
mailing list