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

1 Answer

+2 votes
by (354k 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

+1 vote
1 answer
+3 votes
1 answer
+2 votes
1 answer

...