I have three tables:
A1 = 5×2 table x Var1 __ ____ 1 2524 2 2342 3 4353 4 4353 5 2348A2 = 5×2 table x Var2 __ ____ 1 6745 3 5942 4 9569 5 2454 6 1240A3 = 5×2 table x Var3 __ _____ 2 4252 3 9345 4 9235 5 1246 6 3965
For each table I want to find and delete the rows that contains a number in the first row that is not in the first rows of both other tables. So I want to end up with this:
A1 = 3×2 table x Var1 __ ____ 3 4353 4 4353 5 2348 3×2 table x Var2 __ ____ 3 5942 4 9569 5 2454A3 = 3×2 table x Var3 __ ____ 3 9345 4 9235 5 1246
How can I do this? Preferably with no loops.
Best Answer