powered by
Sector classifications for the stock symbols in the sample datasets. Note: ETFs (SPY, QQQ, etc.) are not included as they represent indices or sectors themselves rather than individual companies.
data(sample_sp500_sectors)
A data.table with 18 rows and 2 columns:
Character, stock ticker symbol
Character, GICS sector classification
data(sample_sp500_sectors) head(sample_sp500_sectors) # Count stocks per sector table(sample_sp500_sectors$Sector)
Run the code above in your browser using DataLab