# NOT RUN {
# Load libraries
library(tidyquant)
# Get the list of stock index options
tq_index_options()
# Get all stock symbols in a stock index
# }
# NOT RUN {
tq_index("DOW")
# }
# NOT RUN {
# Get the list of stock exchange options
tq_exchange_options()
# Get all stocks in a stock exchange
# }
# NOT RUN {
tq_exchange("NYSE")
# }
# NOT RUN {
# }
Run the code above in your browser using DataCamp Workspace