开发者

What is causing this failure when using readHTMLTable()?

开发者 https://www.devze.com 2023-04-13 06:41 出处:网络
library(XML) url <- \'http://www.dqnews.com/Charts/Monthly-Charts/LA-Times-Charts/ZIPLAT.aspx\' tableVals <- readHTMLTable(url)
library(XML)
url <- 'http://www.dqnews.com/Charts/Monthly-Charts/LA-Times-Charts/ZIPLAT.aspx'
tableVals <- readHTMLTable(url)

When I run this all by itself on a fresh workspace, I get

Error: Namespace prefix  of attribute publishsource is not defined

After digging through the page source, the closest attribute I found to the one in the error is this:

`<div id="Chart for Web_9726" align="center" x:publishsource="Excel">`

but searching turns up nothing. Is there perhaps a better way to automatically vacuum this data into a matrix o开发者_运维百科r dataframe?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号