R - read gz files using read.table(gzfile(...))

25 Dec 2018

Read gz files in R:

read.table(gzfile("foo.csv.gz"))

Or using fread from data.table package:

https://www.r-bloggers.com/now-fread-from-data-table-can-read-gz-and-bz2-files-directly

[ R  io  table  function  package  ]