[R] setdiff for data.frames?

2009-03-12 Thread Jason Rupert
I have two data.frames. One is the subset of the other. I need to determine what rows were removed from the superset data.frame to form the subset data.frame. I was hoping to turn up functionality similar to setdiff for data.frames, but did not have any luck. It seems I need to find a

Re: [R] setdiff for data.frames?

2009-03-12 Thread Gabor Grothendieck
Try this: library(sqldf) BODsub - BOD[1:3,] sqldf(select * from BOD except select * from BODsub) For more see: http://sqldf.googlecode.com On Thu, Mar 12, 2009 at 5:58 PM, Jason Rupert jasonkrup...@yahoo.com wrote: I have two data.frames. One is the subset of the other.  I need to determine

Re: [R] setdiff for data.frames?

2009-03-12 Thread G. Jay Kerns
Dear Jason, On Thu, Mar 12, 2009 at 6:11 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: Try this: library(sqldf) BODsub - BOD[1:3,] sqldf(select * from BOD except select * from BODsub) For more see: http://sqldf.googlecode.com Also, please see