全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
799 0
2023-03-28
诸天大神好:
      我刚开始学习R语言,碰到下面的错误提示,求指点:
library(rvest)     
url <- "http://vip.stock.finance.sina.com.cn/moneyflow/#zljlrepm"
xpath <- '//*[@id="S_HQ_CONTAINER_ufwpx"]/div[1]/h3'
nodes <- html_nodes(read_html(url,encoding = 'GB18030'), xpath=xpath)
tables <- html_table(nodes)
restab <- tables[[1]]

到这里,系统提示错误:Error in tables[[1]]: subscript out of bounds。求指点!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群