[R] How to locate the difference from two data frames

David Winsemius dwinsemius at comcast.net
Thu Apr 8 03:36:11 CEST 2010


On Apr 7, 2010, at 9:31 PM, 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.

You could try:

  str(a); str(b)


David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list