我正在看Darren Cook的书,并试图按如下方式加载数据集。
library(h2o)
library(tidyverse)
h2o.init()
mydata<-"https:/raw.githubusercontent.com/DarrenCook/h2o//bk/data sets/"
mydata<-h2o.importFile(paste0(mydata,"iris_wheader.csv"))
对此,我得到了以下错误:
Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = page, :
ERROR MESSAGE:
Illegal character in path at index 60: https://raw.githubusercontent.com//DarrenCook//h2o//bk//data sets//iris_wheader.csv
我做错了什么,或者我该如何解决?
URL错误。试试这个:
library(h2o)
h2o.init()
mydata <- h2o.importFile("https://raw.githubusercontent.com/DarrenCook/h2o/bk/datasets/iris_wheader.csv")