我正在尝试从github将CSV文件读入R:
latent.growth.data <- read.csv("https://github.com/aronlindberg/latent_growth_classes/blob/master/LGC_data.csv")
然而,这给了我:
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") : unsupported URL scheme
我尝试过?read.csv
、?download.file
、getURL
(它只返回了奇怪的HTML),以及数据导入手册,但仍然不明白如何使它运作。
我做错了什么?
Error in function (type, msg, asError = TRUE) : SSL证书问题:无法获取本地颁发者证书
? - Hack-Ry <- read.csv(text=getURL("https://raw.github.com/aronlindberg/latent_growth_classes/master/LGC_data.csv"))
- bjosephx <- getURL("https://github.com/eparker12/nCoV_tracker/blob/master/input_data/coronavirus_today.csv") y <- read.csv(text = x)
- Ben10