In this vignette it says filtering rows in a data.table is much faster when setting a key and using binary search as opposed to vector scanning. Sticking to the example in the vignette
setkey(flights, origin)
flights[.("JFK")]
is supposed to be much faster than
flights[origin == "JFK"]
Is there a similarly nice syntax for dropping rows instead of keeping rows? That is, what is the counterpart of the first solution for the case of
flights[origin != "JFK"]
?