Re: [R] reading and parsing gzipped files

2008-09-05 Thread Prof Brian Ripley
On Thu, 4 Sep 2008, Dmitriy Skvortsov wrote: Hi all,I have large compressed text tab delimited files, I am trying to write efficient function to read them, I am using gzfile() and readLines() zz <- gzfile("exampl.txt.gz", "r") # compressed file system.time(temp1<-readLines(zz )) close(zz

[R] reading and parsing gzipped files

2008-09-04 Thread Dmitriy Skvortsov
Hi all,I have large compressed text tab delimited files, I am trying to write efficient function to read them, I am using gzfile() and readLines() zz <- gzfile("exampl.txt.gz", "r") # compressed file system.time(temp1<-readLines(zz )) close(zz) which work fast, and create vector of strings