[R] reading text files compressed by gzip
Daren Tan
darentan76 at gmail.com
Tue Feb 24 15:13:36 CET 2009
I have a number of text files that were archived by gzip. To save the
trouble of uncompressing them, I used the following command. Then I
checked the dimension of m, the number of rows is 14 which should be
10000. How can I "force" the remaining rows to be read into m ?
>m <- read.delim(gzfile("Sample.txt.gz"), sep="\t").
> dim(m)
[1] 14 15
> sessionInfo()
R version 2.8.0 (2008-10-20)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] gplots_2.6.0 gdata_2.4.2 gtools_2.5.0
loaded via a namespace (and not attached):
[1] tools_2.8.0
More information about the R-help
mailing list