next up previous
Next: Interacting with the Operating Up: Getting started Previous: Memory management in S

Reading gzipped, bzipped, zipped, and url files into R

You can read such files into R without unzipping or downloading the file from the web in advance. Use the gz(), bz(), unz(), or url() commands. For example:
zz=gzfile('file.csv.gz','rt')  
dat=read.csv(zz,header=F)

Last modified: 12/22/09.



Chris Paciorek 2012-01-21