ticker_dates: Get Yahoo! Finance Start/End Dates for One or More Tickers

Description Usage Arguments Value Author(s) References Examples

Description

This function just returns the start/end dates of tickers on Yahoo! Finance, so you can see what range of dates are available for one or more funds.

Usage

1
ticker.dates(tickers, from = "1950-01-01", to = Sys.Date())

Arguments

tickers

Character string or vector of character strings with ticker symbols that Yahoo! Finance recognizes.

from

Date or character string in form of date (e.g. "1950-01-03" for January 3, 1950), indicating the starting date for the period of interest.

to

Date or character string in form of date (e.g. "2015-03-09" for March 9, 2015), indicating the ending date for the period of interest.

Value

Data frame showing start date, end date, and number of trading days for each ticker.

Author(s)

Dane R. Van Domelen

References

Acknowledgment: This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. DGE-0940903.

Examples

1
2
# See what dates are available for Apple and Amazon
#ticker.dates(c("AAPL", "AMZN"))

Example output

Loading required package: rbenchmark

stocks documentation built on May 31, 2017, 3:18 a.m.