Hello,
i have a main dataset and need to keep only a big list of variables from another input and filter out the rest. below is an example but the real dataset has much more variables so i cannot use a filter function.
| Variables to keep |
| bread |
| milk |
| eggs |
Main dataset: need to keep only the above but in a dynamic way for over 50 variables.
| code | product |
| a | milk |
| b | water |
| c | flour |
| d | eggs |
| e | tomato |
| f | apple |
| g | bread |