Importing Excel file using url using read.xls

前端 未结 2 1394
囚心锁ツ
囚心锁ツ 2020-12-04 01:00

I\'m trying to use read.xls from gdata to import an Excel file directly into R. I\'m on a Windows machine running 64 bit R.

I have checked my PATH variable for perl

2条回答
  •  执笔经年
    2020-12-04 01:59

    @G.G is correct that read.xls does not support https. However, if you simply replace the https with http in the url you should be able to download the file.

    Give this a try:

    require(RCurl)
    require(gdata)
    url <- "http://dl.dropboxusercontent.com/u/27644144/NADAC%2020140101.xls"
    test <- read.xls(url)
    

提交回复
热议问题