Dear All,
Please I need help. I ran the below function and got the highlighted error
message. How can I correct it?
library(rvest)# Web-scrape SP500 stock listsp_500 <-
read_html("https://en.wikipedia.org/wiki/List_of_S%26P_500_companies;)
%>%html_node("table.wikitable") %>%html_table()
I'm trying to reproduce the results described in
https://r-forge.r-project.org/scm/viewvc.php/*checkout*/pkg/inst/doc/IntroductionToPairTrading.pdf?revision=6=pairtrading=6
[1]
(and in
https://www.r-bloggers.com/2011/10/pair-trading-strategy-how-to-use-pairtrading-package/)
I have some minor