stat231-f20 / Blog-MoneyMovers

Repository for PUG Blog Project – Money Movers
https://stat231-f20.github.io/Blog-MoneyMovers
0 stars 0 forks source link

tidyquant and quantmod packages #3

Open katcorr opened 3 years ago

katcorr commented 3 years ago

@luwilliam20 @zostrow2001

Alternatively to scraping the scrolling webpage, other groups have discovered the tidyquant and quantmod packages in R, which you could use to retrieve stock prices for particular companies across a range of dates with a function from the package(s), e.g.

MMM <- tq_get('MMM',
from = "2017-01-01",
to = "2018-03-01",
get = "stock.prices")

This may be the more efficient solution!

And @luwilliam20, if you're interested in going into the finance industry, these could be good packages to become familiar with!