RiverSMART can write csv files now, and RWDataPlot also writes out large txt files. Reading them in can be slow with utils::read.csv()
For a 1.625 GB csv file with 20,338,560 rows the read times on DirtyDevil are:
utils::read.csv() - 117.56 seconds
data.table::fread() - 16.2 seconds
readr::read_csv() - 36.96 seconds
We should use one of these or readr::read_tsv() for the txt files to increase speed.
RiverSMART can write csv files now, and
RWDataPlot
also writes out large txt files. Reading them in can be slow withutils::read.csv()
For a 1.625 GB csv file with 20,338,560 rows the read times on DirtyDevil are:
utils::read.csv()
- 117.56 secondsdata.table::fread()
- 16.2 secondsreadr::read_csv()
- 36.96 secondsWe should use one of these or
readr::read_tsv()
for the txt files to increase speed.