This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
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
Main dataset: need to keep only the above but in a dynamic way for over 50 variables.
You have a point but wouldnt variable to keep list will have unique occurrences. That way it wont cause duplicates. You can do something like below. Find and replace method suggested by @KarolinaRoza would be another method you can use 🙂.