on-internet
← Community

How to remove all rows except for those that match values in a vector

Stack Overflow ·

So I have a Vector A A <- c(10, 40) And a df Fruit Number Banana 10 Orange 20 Apple 40 How do I remove all rows except those where column Number values match Vector A?

Comments

Sign in or sign up to comment and upvote.

No comments yet.