I have the following df that shows the food some people eat for a day.
df = data.frame("Name" = c("Brian", "Brian", "Brian",
"Alice", "Alice", "Alice",
"Paul", "Paul", "Paul",
"Clair", "Clair", "Clair"),
"Meal" = c("Breakfast", "Lunch", "Dinner",
"Breakfast", "Lunch", "Dinner",
"Breakfast", "Lunch", "Dinner",
"Breakfast", "Lunch", "Dinner"),
"Food" = c("Waffle", "Chicken", "Steak",
"Waffle", "Soup", "Steak",
"Waffle", "Chicken", "Chicken",
"Waffle", "Soup", "Chicken")
I want to find a food that was eaten by 100% of people, a food that was eaten by 75% of people, and a food that was eaten by 50% of people. In this case Waffle was eaten by everyone, chicken was eaten by 75% of people, and soup/steak was eaten by 50% of people.
EDIT:
Expected Output: The percentage of people who ate each food
Waffle - 100%
Chicken - 75%
Steak - 50%
Soup - 50% .