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
If I rename your matrices amat and bmat, then
amat
bmat
amat[which(sapply(1:nrows(amat),function(x) prod(amat[x,]>bmat[x,]))==1),] [1] 10 10
And you can paste the 'hours' row back on if desired.