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

1 Answer

0 votes
by (35.8k points)

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
+2 votes
1 answer
+3 votes
1 answer
+4 votes
1 answer
...