scraping HTML data.table using rvest
问题 I'm trying to scrape the "Fish Sampled" table data from Minnesota DNR using R rvest package. I used the chrome extension SelectorGadget to find the xpath for the table. I'm unable to get any table data from the webpage into R. Any help is appreciated library(rvest) urllakes<- read_html("http://www.dnr.state.mn.us/lakefind/showreport.html? downum=27011700") lakesnodes <- html_nodes(urllakes,xpath = '//*[(@id = "lake-survey")]') html_table(lakesnodes,fill=TRUE) #Error: html_name(x) == "table"