So I know how to delete rows based off one column condition. How do I do it for multiple conditions?
Date Frame = "olddata"
Letter Number Color
X 1 Blue
Y 3 Red
Z 5 Yellow
D 1 Red
F 1 Yellow
X 2 Green
For example, to delete rows with the Letter X in it, and rows with color green, you can do:
newdata <- subset(olddata, olddata$Letter != "X" & olddata$Color != "Green")
Now how do I delete Rows that have the letter F and is Yellow, i.e. both criteria must be met.
Thanks!