ticker_dates {stocks} | R Documentation |
Get Yahoo! Finance Start/End Dates for Tickers
Description
Typically useful for determining a time period over which to compare several funds.
Usage
ticker_dates(tickers, from = "1950-01-01", to = Sys.Date())
Arguments
tickers |
Character vector with ticker symbols that Yahoo! Finance recognizes. |
from |
Date or character string (e.g. |
to |
Date or character string (e.g. |
Value
Data frame with ticker symbol, start date, end date, and number of trading days for each ticker.
References
Ryan, J.A. and Ulrich, J.M. (2017) quantmod: Quantitative Financial Modelling Framework. R package version 0.4-12, https://CRAN.R-project.org/package=quantmod.
Examples
## Not run:
# See what dates are available for Apple and Amazon
ticker_dates(c("AAPL", "AMZN"))
## End(Not run)
[Package stocks version 1.1.4 Index]