Re: [R] Problems with intersections between two charcter vectors

2013-12-04 Thread Berend Hasselman
On 04-12-2013, at 07:52, snow <7146...@qq.com> wrote: > I'm a beginner with R. > > I have two vectors in character format. I tried to get the intersection of > these two vectors using intersect(). But there is no result. The process is > below: >> a<-c("CREB2” ,“ELK1” ,“ELK4” ,“MYC” ,“NR4A1” ,

Re: [R] Problems with intersections between two charcter vectors

2013-12-04 Thread Jim Holtman
the vectors in you first example look like a long character string since I only see quote marks at the beginning and end and notbon the individual objects, but it is hard to tell since it appears to be in HTML. Sent from my iPad On Dec 4, 2013, at 1:52, "snow" <7146...@qq.com> wrote: > I'm a b

[R] Problems with intersections between two charcter vectors

2013-12-03 Thread snow
I'm a beginner with R. I have two vectors in character format. I tried to get the intersection of these two vectors using intersect£¨£©. But there is no result. The process is below: > a<-c("CREB2¡± ,¡°ELK1¡± ,¡°ELK4¡± ,¡°MYC¡± ,¡°NR4A1¡± ,¡°FOS¡± ,¡°SRF¡± > ,¡°TAU¡± ,¡°STMN1¡± ,¡°CPLA2")> a