Re: [R] How to unzip a .gz file

2015-02-10 Thread Henrik Bengtsson
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

Re: [R] How to unzip a .gz file

2015-02-10 Thread Benno Pütz
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

Re: [R] How to unzip a .gz file

2015-02-10 Thread Clint Bowman
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

[R] How to unzip a .gz file

2015-02-10 Thread Alexandra Catena
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