Other Optimisations: Data munging

Use the most efficient way to load your data

  • If you have a flat file, try data.table::fread() or vroom::vroom() instead of read.csv() or read.table().

  • If you have a data frame, try saving with arrow::write_feather() and reading with arrow::read_feather(). Feather is a binary file format that can be considerably faster to read and write.

  • If you have objects that aren’t data frames, try using qs::qread()/qs::qsave() instead of readRDS()/saveRDS().