ByRow subset vs filter performance

In short: because filter accepts only one condition + it works rowwise, so it has much simpler logic internally. subset allows passing multiple conditions + it works on whole columns. (if you want more details it is best to check the source code to see the differences in implementation)

3 Likes