I have dataframe like this
I would like to subset rows based on two conditions:
- condition 1 is "yes"
- conditions 2-5 appear "yes" at least once
-> the selected rows would be A and C
Another problem is, that I would like to subset columns that meet the following criteria:
- condition 1 is "yes"
- conditions 2-5 appear only "no"
-> the selected rows would be B and D
I've tried to figure this out, but haven't found a suitable solution yet?