I have this dataframe (but let's imagine it with many columns/variables)
df = data.frame(x = c(0,0,0,1,0),
y = c(1,1,1,0,0),
z = c(1,1,0,0,1))
I want to subset this dataset based on the condition that (x=1) and (y=0 or z = 0 or etc..)
I am already familiar with the basic function that works for small datasets, but I want a function that works for bigger datasets. Thanks