I had a list of four separate .csv files that contained records for appetizers, meals, sides, and appetizers, and combined the various combinations of the variables in each list in R.
My table looks like this:
|---------------------|------------------|------------------|----------------|
| Entre 1 | Entre 2 | Side | Appetizer |
|---------------------|------------------|------------------|----------------|
| Orange Chicken | Sesame Chicken | Fried Rice | Crab Rangoon |
|---------------------|------------------|------------------|----------------|
| Sesame Chicken | Orange Chicken | Fried Rice | Crab Rangoon |
|---------------------|------------------|------------------|----------------|
The problem is that for meals where the customer can pick two entres, I get rows that are the same practically. The first row of the example - Orange Chicken/Sesame Chicken/Fried Rice/Crab Rangoon - is the same meal as the second-row combo.
Is there a function within R that can create a unique dataframe of combos?
I have usually done this in Excel, but now I have a dataset of 46,000+ rows that I am trying to simplify.
In the example above, I would like to remove the second row and keep the first row.