| country |
suit_color |
shirt_color |
tie_color |
| A |
white |
blue |
black |
| B |
orange |
blue |
pink |
| C |
white |
white |
white |
| D |
orange |
blue |
pink |
| E |
white |
white |
white |
In the above example, how can I drop the observations that have all "white" under the color-related variables?
library(dplyr)
df <- tribble(
~country, ~ suit_color, ~ shirt_color, ~tie_color,
"A", "white", "blue", "black",
"B", "orange", "blue", "pink",
"C", "white", "white", "white",
"D", "orange", "blue", "pink",
"E", "white", "white", "white"
)