I want to subset data if every value in the row is greater than the respective row in a different data frame. I also need to skip some top rows. These previous questions did
I think it is better to use SQL for such inter table filtering. It is clean and readable( You keep the rules logic).
library(sqldf) sqldf('SELECT DISTINCT A.* FROM A,B WHERE A.name1 > B.name1 AND A.name2 > B.name2') name1 name2 1 trt ctrl 2 10 10