Hi, David, Thanks for the reply. However str() doesn't tell me exactly which element is different. I expect to see a is identical to b. But if there is some minor difference (usually by human mistake), I want to know which element (numerical or character) is different.
Jun On Wed, Apr 7, 2010 at 8:36 PM, David Winsemius <dwinsem...@comcast.net>wrote: > > 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 > > [[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.