I'm trying to extract data from the Basketball Reference website.
library(rvest)
data7 <- read_html("http://www.basketball-reference.com/teams/CLE/2017.html") %>%
html_nodes("[id=roster]") %>%
html_table()
data7
The code above returns the data in the "roster" table. However, the following code does not return the "team_misc" table but instead returns a list with legth zero:
html_nodes("[id=team_misc]") %>%
I'm fairly new to rvest so if anyone has any ideas why this does not work it would greatly be appreciated.