Look at: ?setdiff On 11/24/05, <xmeng at capitalbio.com> wrote:> Hello sir: > Here's a question: > x<-1:5 > y<-c(2,1,4) > > I wanna get the different elements between x & y,i.e. 3,5. > > How can I get the result(3,5) via R function? > > Thanks a lot for your help. > > My best! > > > > > > > > ------------------------------ > ******************************************* > Xin Meng > Capitalbio Corporation > National Engineering Research Center > for Beijing Biochip Technology > BioPharma-informatics & Software Dept. > Research Engineer > Tel: +86-10-80715888/80726868-6444 > Fax: +86-10-80726790 > Emailxmeng at capitalbio.com > Address:18 Life Science Parkway, > Changping District, Beijing 102206, China > > > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! R-project.org/posting-guide.html > >
Hello sir: Here's a question: x<-1:5 y<-c(2,1,4) I wanna get the different elements between x & y,i.e. 3,5. How can I get the result(3,5) via R function? Thanks a lot for your help. My best! ------------------------------ ******************************************* Xin Meng Capitalbio Corporation National Engineering Research Center for Beijing Biochip Technology BioPharma-informatics & Software Dept. Research Engineer Tel: +86-10-80715888/80726868-6444 Fax: +86-10-80726790 Email仯伜xmeng at capitalbio.com Address:18 Life Science Parkway, Changping District, Beijing 102206, China