s-news
[Top] [All Lists]

Re: combine vectors without duplicates

To: feiwan <wanf@email.uc.edu>
Subject: Re: combine vectors without duplicates
From: Spencer Graves <spencer.graves@PDF.COM>
Date: Wed, 20 Aug 2003 09:13:51 -0700
Cc: s-news@wubios.wustl.edu
References: <8B9604D41941A14F90E094B07713F9531B773C@HON10036.corp.hmsa.com> <3F42C8F6.400@pdf.com> <004e01c366fb$0bf64820$3a500a0a@gradstudent>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
Have you considered "unique", "table", "is.element", ..., ?

hope this helps.  spencer graves

feiwan wrote:
Dear S-users:
I am trying to combine the following 6 groups (some elements in each groups
are same) into a vector without duplicated elements. how can i do it
efficiently ? I am thinking about using something like

genenames.TEL%in%genenames.TALL etc to get the duplicated elements one by
one.

genenames.TEL<-rownames(top.TEL)
genenames.TALL<-rownames(top.TALL)
genenames.MLL<-rownames(top.MLL)
genenames.Hyperdip<-rownames(top.Hyperdip)
genenames.E2A<-rownames(top.E2A)
genenames.BCR<-rownames(top.BCR)

any suggustions will be appreciated.

regards,

w.f

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news



<Prev in Thread] Current Thread [Next in Thread>