I want to extract the Holdings table from Here I have the following code:
library(rvest)
turl = 'https://whalewisdom.com/stock/spy'
test_html = read_html(turl)
df<-html_table(test_html)
However on running it i get the following error:
Error in matrix(NA_character_, nrow = n, ncol = maxp) : invalid 'ncol' value (too large or NA) In addition: Warning messages: 1: In max(p) : no non-missing arguments to max; returning -Inf 2: In matrix(NA_character_, nrow = n, ncol = maxp) : NAs introduced by coercion to integer range