toby909 at gmail.com
2007-Jun-06 22:16 UTC
[R] opening a file from within a zipfile that is online
Hi Reading the help for ?unz I was wondering if I can read data into R from within an zipfile that is on some website, like maybe: dtaa = read.table(unz("http://www.ats.ucla.edu/stat/examples/alsm/alsm.zip","Ch01pr19.dat")) Thanks for letting me know if you came acros such a thing before. Toby
Prof Brian Ripley
2007-Jun-07 07:39 UTC
[R] opening a file from within a zipfile that is online
'description' has to be a filepath of a zip file. You will have to download it first. On Wed, 6 Jun 2007, toby909 at gmail.com wrote:> Hi > > Reading the help for ?unz I was wondering if I can read data into R from within > an zipfile that is on some website, like maybe: > > dtaa > read.table(unz("http://www.ats.ucla.edu/stat/examples/alsm/alsm.zip","Ch01pr19.dat")) > > Thanks for letting me know if you came acros such a thing before. > > Toby > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595