Re: [R] Set Difference Problem

2018-03-19 Thread S Ellison
quot;}} Note the double parentheses ... this is still a set of sets with one member, not a set of character strings with four members. Hope that helps ... S Ellison > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Neha > Aggarwal > Sent: 18 M

[R] Set Difference Problem

2018-03-18 Thread Neha Aggarwal
Hello All, I am facing a problem and am unable to find much help online as sets package in R is relatively new. My problem is as follows: Set R is made of 2 sets x and y x<-{"P1", "P2", "P3", "P4"} y<-{} R<-set(x,y) #R={{}, {"P1", "P2", "P3", "P4"}} i need to use R in a recursive loop where i