subset by at least two out of multiple conditions
问题 I found many questions dealing with subsetting by multiple conditions, but just couldn't find how to subset by at least two out of >2 conditions. This SO question deals with the same problem, but applies the same condition to all columns: Select rows with at least two conditions from all conditions My question is: How can I subset rows by at least two out of three different conditions? id<-c(1,2,3,4,5) V1<-c(2,4,4,9,7) V2<-c(10,20,20,30,20) V3<-c(0.7,0.1,0.5,0.2,0.9) df<-data.frame(cbind(id