Error in xj[i, , drop = FALSE] : (subscript) logical subscript too long

With the following code I’m getting an error message:

iris.comparison[disagreement.index,]```
Error in xj[i, , drop = FALSE] : (subscript) logical subscript too long