Re: [R] Getting indeices of intersecting elements.

2009-10-14 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Praveen Surendran > Sent: Wednesday, October 14, 2009 9:15 AM > To: r-help@r-project.org > Subject: [R] Getting indeices of intersecting elements. > > Hi

Re: [R] Getting indeices of intersecting elements.

2009-10-14 Thread David Winsemius
On Oct 14, 2009, at 12:15 PM, Praveen Surendran wrote: Hi, Is there a command to get the indices of intersecting elements of two vectors as intersect() will give the elements and not its indices. ?which samp1 <- sample(seq(3,198, by=3), 20); samp2 <- sample(seq(3,198, by=3), 20) in

[R] Getting indeices of intersecting elements.

2009-10-14 Thread Praveen Surendran
Hi, Is there a command to get the indices of intersecting elements of two vectors as intersect() will give the elements and not its indices. Thanks in advance. Praveen Surendran School of Medicine and Medical Sciences University College Dublin Belfield, Dublin 4 Ireland.