Re: [R] PROC COMPARE

2010-11-23 Thread Joshua Wiley
Hi James, Here is another option: all.equal() is more general, the sapply() option I wrote assumes both data frames are basically the same, but that maybe a few elements are different (e.g., you have two data sets and are not sure which is more recent). y <- x <- iris # x & y copies of iris ## c

Re: [R] PROC COMPARE

2010-11-23 Thread Henrique Dallazuanna
See all.equal, a toy example: all.equal(iris, Orange) On Tue, Nov 23, 2010 at 3:17 PM, Jim Edd Jones wrote: > Is it possible to use R to compare two datasets to look for discrepancies, > as one would with the SAS procedure PROC COMPARE? > > Any help on this would be greatly appreciated. > > Ja