Not clear if you need to:
1. decompress /home/file.gz, or
2. read the content of /home/file.gz into R.
For (1) you can use `gunzip` at the command line, or
gunzip("/home/file.gz") of the R.utils package. For (2), as already
mentioned, R does a good job of reading gzip'ed files "as is". It may
e
readLines (as well as other I/O routines) handles gzip files transparently, you
should be able to simply use
readLines('/home/file.gz’)
Benno
On 10 Feb 2015, at 22:45 , Alexandra Catena wrote:
> Hello,
>
> Can someone help me with unzipping a .gz file. I used:
>
> readLines(gzfile
Alexandra, Although you may not have control over the installation of R,
2.15.1 is very old and should be upgraded--the current is 3.1.2
Clint BowmanINTERNET: cl...@ecy.wa.gov
Air Quality Modeler INTERNET: cl...@math.utah.edu
Department of Ecology
Hello,
Can someone help me with unzipping a .gz file. I used:
readLines(gzfile('/home/file.gz'))
I also found that I could use gunzip, but after trying to install it, it
says:
"package ‘gunzip’ is not available (for R version 2.15.1)"
Thanks,
Alexandra
[[alternative HTML version d
4 matches
Mail list logo