Description Usage Arguments Value Examples
Yahoo Finance data analysis in R
1 | scottstock(ticker, frequency, start_date, end_date)
|
ticker |
The stock symbol you want: "MSFT", or you can specify multiple by c("MSFT", "FB") |
frequency |
YourThe type of data you want to pull: "daily", "weekly", "monthly", "yearly" |
start_date |
The earliest date from which you want to pull data: "MM-DD-YYYY" surrounded by quotes |
end_date |
The latest date from which you want to pull data: "MM-DD-YYYY" surrounded by quotes |
Output is a dataframe with the stock data specified.
scottstock()
returns the Yahoo Finance data for a given ticker and start/end dates.
1 | myStock <- scottstock("MSFT","monthly", "01-01-2019", "12-31-2019")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.