Closed abhayhm closed 1 year ago
[1] "** Starting creation of index table (STEP1)" Error in map(): ℹ In index: 1. Caused by error in .[[1]]: ! subscript out of bounds
map()
.[[1]]
tables <- map(table_xpaths, ~homepage %>% read_html() %>% html_nodes(xpath = .x) %>% html_table(fill = TRUE, header = FALSE) %>% .[[1]] %>% #take first element of list .[-1,]) #remove header
Error message:
[1] "** Starting creation of index table (STEP1)" Error in
map()
: ℹ In index: 1. Caused by error in.[[1]]
: ! subscript out of boundsError is in line 77:
tables <- map(table_xpaths, ~homepage %>% read_html() %>% html_nodes(xpath = .x) %>% html_table(fill = TRUE, header = FALSE) %>% .[[1]] %>% #take first element of list .[-1,]) #remove header