scrape a table with rvest in R that has mismatch table heading
问题 I'm trying to scrape this table which seems like it would be super simple. Here's the url of the table: https://fantasy.nfl.com/research/scoringleaders?position=1&sort=pts&statCategory=stats&statSeason=2019&statType=weekStats&statWeek=1 Here's what I coded: url <- "https://fantasy.nfl.com/research/scoringleaders?position=1&sort=pts&statCategory=stats&statSeason=2019&statType=weekStats&statWeek=1" x = data.frame(read_html(url) %>% html_nodes("table") %>% html_table()) This works ok but gives