R tip: use radix sort.
The “method = "radix"” option can greatly speed up sorting and ordering tables in R.
For a 1 million row table the speedup is already as much as 35 times (around 9.6 seconds versus 3 tenths of a second). Below is an excerpt from an experiment sorting showing default settings and showing radix sort (full code here).
1 | |
1 | |