Dear R user,
I have two data frames.
- the first contains a column with a list of "macro-codes", a second column with a list of "micro- codes" (these can be repeated across macro-codes), a third column with a weight for each micro-code
- the second contains just a column with micro-codes (you can find some of them in the first df).
I need to create a third df with a further column in which i find 1/0 if the micro-code is present or not in the second df. In xls, I would do this with Vlook_up. How can i do it in R?
Any suggestion would be really appreciated,
Thank you in advance for your precious support!