+5 votes
in Programming Languages by (54.1k points)
How to read a large gzip tsv or csv file in R?

1 Answer

+2 votes
by (233k points)
selected by
 
Best answer

You can use fread() function of data.table library to read a gzip tsv file.

library(data.table)
v = fread(filename, sep="\t")

If the file has header, you can try the following code:

library(data.table)
v = fread(filename, sep="\t", header=TRUE)
 

Related questions


...