<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi all,
<p>i have a little pb but i don t find&nbsp; how i can solve it..
<br>this is..
<br>i have two vectors x and yn and they don t have the same length...
<br>(i suppose length(x)>length(y))
<br>this is what i want to do.
<br>i suppose that
<br>x=c(10,1,2,3,7,9,1,4,2,11,2,10) and y=c(1,2,4,10)
<br>i want to find all the numbers of rows i of x for which x[i] exists
in y ...
<br>&nbsp;i.e. in this case ...rep=(1,2,3,7,8,9,11,12)
<p>Best regards,
<br>Olivier
<br>&nbsp;
<pre>--&nbsp;
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; phone: (33) 04 76 61 53 55
Projet IS2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 06 08 67 93 42&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
INRIA Rhone-Alpes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fax&nbsp; : (33) 04 76 61 54 77
655, Av. de l'Europe
Montbonnot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e-mail:olivier.martin@inrialpes.fr
38334 Saint Ismier cedex
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-</pre>
&nbsp;</html>