get_sp500_tickers: Get S&P 500 Ticker Symbols as on a Particular Date

Description Usage Arguments Value Examples

View source: R/get_sp500_tickers.R

Description

Scrapes ticker symbols from the Wikipedia Revision history https://en.wikipedia.org/wiki/List_of_S%26P_500_companies. Of course, the data may be imperfect.

Usage

1

Arguments

date

Date (or character vector that can be coerced).

Value

Character vector.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# S&P 500 tickers as of today
head(get_sp500_tickers())

# S&P 500 tickers at the beginning of 2019
head(get_sp500_tickers("2019-01-01"))

## End(Not run)

vandomed/stocks documentation built on July 22, 2020, 3:25 a.m.