[R] Data import export zipped files from URLs

Velappan Periasamy veepsirtt at gmail.com
Sat Jan 23 09:37:49 CET 2010


 cannot open: HTTP status was '404 Not Found' while running the
following commands

f <- tempfile()
download.file("http://nseindia.com/content/equities/scripvol/datafiles/01-01-2010-TO-23-01-2010RCOMXN.csv",
f)
myData <- read.csv(f)


On 1/19/10, Henrique Dallazuanna <wwwhsd at gmail.com> wrote:
> Try this:
>
> f <- tempfile()
> download.file("http://nseindia.com/content/historical/EQUITIES/2010/JAN/cm15JAN2010bhav.csv.zip",
> f)
> myData <- read.csv(unzip(f))
>
> On Tue, Jan 19, 2010 at 2:56 PM, Velappan Periasamy <veepsirtt at gmail.com>
> wrote:
>> How to unzip this file?.
>>
>>> mydata <-
>>> unzip("http://nseindia.com/content/historical/EQUITIES/2010/JAN/cm15JAN2010bhav.csv.zip")
>> Warning message:
>> In
>> unzip("http://nseindia.com/content/historical/EQUITIES/2010/JAN/cm15JAN2010bhav.csv.zip")
>> :
>>  error 1 in extracting from zip file
>>>
>>
>> ______________________________________________
>> R-help at r-project.org 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.
>>
>
>
>
> --
> Henrique Dallazuanna
> Curitiba-Paraná-Brasil
> 25° 25' 40" S 49° 16' 22" O
>



More information about the R-help mailing list