为什么rvest/html_表会跳过此表中的每一行?

为什么rvest/html_表会跳过此表中的每一行?,html,css,r,web-scraping,rvest,Html,Css,R,Web Scraping,Rvest,我正试图清理这个表,但由于某些原因,每第二行都被跳过(这意味着我没有关于一半州的数据)。这是我的代码: # read in the url library(dplyr) library(rvest) webpage <- read_html ("https://oui.doleta.gov/unemploy/trigger/2013/trig_010613.html") df <- webpage %>% html_node("table") %>% html

我正试图清理这个表,但由于某些原因,每第二行都被跳过(这意味着我没有关于一半州的数据)。这是我的代码:

# read in the url
library(dplyr)
library(rvest)
webpage <- read_html ("https://oui.doleta.gov/unemploy/trigger/2013/trig_010613.html")
df <- webpage %>%
html_node("table") %>%      
html_table(fill = TRUE)  
#读入url
图书馆(dplyr)
图书馆(rvest)
网页%
html_表(fill=TRUE)
有人知道为什么会这样吗?我唯一能想到的是,每第二行都有指定的背景色

谢谢:)

看看这是否有帮助

webpage <- read_html("https://oui.doleta.gov/unemploy/trigger/2013/trig_010613.html")
df <- webpage %>%
  html_nodes(xpath = '/html/body/table') %>%      
  html_table(fill = TRUE) 


d = as.data.frame(df)
网页%
html_表(fill=TRUE)
d=as.data.frame(df)
看看这是否有帮助

webpage <- read_html("https://oui.doleta.gov/unemploy/trigger/2013/trig_010613.html")
df <- webpage %>%
  html_nodes(xpath = '/html/body/table') %>%      
  html_table(fill = TRUE) 


d = as.data.frame(df)
网页%
html_表(fill=TRUE)
d=as.data.frame(df)

谢谢,但它仍然存在第二行缺失的问题:(谢谢,但它仍然存在第二行缺失的问题:(