I have a huge .gz file with millions of data. I would like to read this .gz file in R as I want to do some manipulations to each of its line. I tried:
gzf <- gzfile("myfile.gz", open = "r")
f <- readLines(gzf)
However this takes forever in R and it gives me a memory error. Is there an efficient way to read it? Thanks