Other Optimisations: Data munging
Use the most efficient way to load your data
If you have a flat file, try
data.table::fread()orvroom::vroom()instead ofread.csv()orread.table().If you have a data frame, try saving with
arrow::write_feather()and reading witharrow::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 ofreadRDS()/saveRDS().