Yahoo stock data and analysis in R
Get Yahoo stock data into a dataframe in R more quickly and easily for students
scottstock(ticker, frequency, start_date, end_date)
The stock symbol you want: "MSFT", or you can specify multiple by c("MSFT", "FB")
The type of data you want to pull: "daily", "weekly", "monthly", "yearly"
The earliest date from which you want to pull data: "MM-DD-YYYY" surrounded by quotes
The latest date from which you want to pull data: "MM-DD-YYYY" surrounded by quotes
This script is a wrapper for Marcelo Perlin's BatchGetSymbols package that also automates analysis and regression commands.
myStock <- scottstock("MSFT","monthly", "01-01-2019", "12-31-2019")