[英]"Error in function (type, msg, asError = TRUE)" in R
I am getting this error when i run this code below to download data当我运行下面的代码下载数据时出现此错误
Error in function (type, msg, asError = TRUE) : Failed to connect to course1.winona.edu port 80: Timed out函数错误(类型、消息、asError = TRUE):无法连接到 course1.winona.edu 端口 80:超时
Any help would be appreciated任何帮助,将不胜感激
My code我的代码
library(RCurl)
urlfile <-'http://course1.winona.edu/bdeppa/Stat%20425/Data/Boston_Housing.csv'
downloaded <- getURL(urlfile, ssl.verifypeer=FALSE)
connection <- textConnection(downloaded)
dataset <- read.csv(connection, header=FALSE)
I don't think you need anything beyond read.csv
.我认为除了read.csv
之外你不需要任何东西。 This works for me:这对我有用:
urlfile <-'http://course1.winona.edu/bdeppa/Stat%20425/Data/Boston_Housing.csv'
dataset <- read.csv(urlfile)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.