data.table is Alec’s favorite R package because it is incredibly efficient,
lightweight and has incredibly responsive and dedicated developers (thank you!).
tidyverse packages are full of great functions and workflows, so check those
out as well. Life isn’t about strange, strict binaries/camps - use what works
Note: if you are having install issues on Mac, check out this reference can be really useful.
DT[i, j, by]
fcase: fast case when. When column == value, return x, when column == value2, return x2, etc.
fifelse: fast if-else with sensible behaviour