Fast drop in rows in data.table
In this, the vignette says that filtering the rows in the data table is much faster when setting up the key and using binary search rather than vector scan, following the example in the vignette
setkey(flights, origin)
flights[.("JFK")]
assumed to be much faster than
flights[origin == "JFK"]
Is there a similarly good syntax for deleting lines instead of storing lines? That is, what is analogous to the first solution for the case
flights[origin != "JFK"]
?
+3
source to share
No one has answered this question yet
See similar questions:
or similar: