[R] Intersection list

2010-05-06 Thread Ralf B
How can I create intersections of vectors? a - c(1,2,3) b - c(1,5,6) the intersected list c should contain c(1)... Ralf __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Intersection list

2010-05-06 Thread John Ramey
?intersect -- John A. Ramey, M.S. Ph.D. Candidate Department of Statistics Baylor University On Thu, May 6, 2010 at 12:48 PM, Ralf B ralf.bie...@gmail.com wrote: How can I create intersections of vectors? a - c(1,2,3) b - c(1,5,6) the intersected list c should contain c(1)... Ralf

Re: [R] Intersection list

2010-05-06 Thread Joris Meys
Check ?'%in%' a[a %in% b] 1 On Thu, May 6, 2010 at 7:48 PM, Ralf B ralf.bie...@gmail.com wrote: How can I create intersections of vectors? a - c(1,2,3) b - c(1,5,6) the intersected list c should contain c(1)... Ralf __

Re: [R] Intersection list

2010-05-06 Thread David Winsemius
On May 6, 2010, at 1:48 PM, Ralf B wrote: How can I create intersections of vectors? a - c(1,2,3) b - c(1,5,6) the intersected list c should contain c(1)... Is your help function not working? Ralf __ R-help@r-project.org mailing list