[R-SIG-Finance] Web Scraping of SPY Stocks

2020-09-25 Thread AIE ATUMA via R-SIG-Finance
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()

Re: [R-SIG-Finance] PairTrading package

2020-09-25 Thread Alec Schmidt
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