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
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
. This works for me:
urlfile <-'http://course1.winona.edu/bdeppa/Stat%20425/Data/Boston_Housing.csv'
dataset <- read.csv(urlfile)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.