I have a data frame with questions A, B, C, and D. I need to create a new variable that returns "Red" (or 1, whichever is easier) when:
A=1 & B=3 & C=1 & D=1
I'm not having any luck getting any functions or code I've searched to work thus far so any help is appreciated.
I've tried case_when and a few other functions