[R] How to read CSV from web?

Ryan Shuell ryanshuell at gmail.com
Mon Sep 14 04:18:25 CEST 2015


How about this?


library(XML)
library(RCurl)

url <- 
"https://raw.githubusercontent.com/sjkiss/Survey/master/mlogit.out.csv"

urldata <- getURL(url)
data <- readHTMLTable(urldata, stringsAsFactors = FALSE)







On Wednesday, July 29, 2015 at 6:41:35 AM UTC-4, jpara3 wrote:
>
> data<-read.csv("
> https://raw.githubusercontent.com/sjkiss/Survey/master/mlogit.out.csv",header=T,sep=",") 
>
>
>
>
> -- 
> View this message in context: 
> http://r.789695.n4.nabble.com/How-to-read-CSV-from-web-tp4710502p4710513.html 
> Sent from the R help mailing list archive at Nabble.com. 
>
> ______________________________________________ 
> R-h... at r-project.org <javascript:> mailing list -- To UNSUBSCRIBE and 
> more, see 
> 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. 
>


More information about the R-help mailing list