I know that the title could be a Little confussing, but basically this is what I want.
Lets supposse I have a a dataframe of this form
P_SEXO P_EDADR COD_ENCUESTAS
<dbl> <dbl> <dbl>
1 2 16 74
2 2 9 75
3 2 18 75
4 2 11 75
5 2 11 76
6 2 1 76
As you can see, theres some values that repeats on COD_ENCUESTAS
, this is because its like an índex in another dataframe (df2).
Df2 have a form like this:
COD_ENCUESTAS VA1_ESTRATO
<dbl> <dbl>
1 74 24
2 75 23
3 76 12
4 77 23
5 78 14
6 79 11
I want output:
P_SEXO P_EDADR COD_ENCUESTAS VA1_ESTRTO
<dbl> <dbl> <dbl> <dbl>
1 2 16 74 24
2 2 9 75 23
3 2 18 75 23
4 2 11 75 23
5 2 11 76 12
6 2 1 76 12
Thnaks beforehand -lasagna