How do I subset a dataframe so that only rows that contain columns that have a value that shows up a certain amount of times in other rows are included.
For example, if I have a column labeled Food, how would I filter out all rows that have a food that shows up less than 5 times in the whole dataframe?
Here’s a quick example:
That selects all rows that contain a letter that appears more than twice.