【发布时间】:2020-06-29 09:16:15
【问题描述】:
请我想把这个网站上的表格放到 Rstudio 中: "https://www.worldometers.info/coronavirus/#countries"
我从零开始学习 R 一个月了,这就是我所做的:
library(XML)
library(rvest)
library(xml2)
url<-("https://www.worldometers.info/coronavirus/#countries")
covid<-readHTMLTable(url,which=1)
head(covid)
输出错误信息
url<-("https://www.worldometers.info/coronavirus/#countries")
> covid<-readHTMLTable(url,which=1)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘readHTMLTable’ for signature ‘"NULL"’
In addition: Warning message:
XML content does not seem to be XML: ''
我需要帮助
【问题讨论】: