GetFTSE100Stocks: Function to download the current components of the FTSE100...

View source: R/GetFTSE100Stocks.R

GetFTSE100StocksR Documentation

Function to download the current components of the FTSE100 index from Wikipedia

Description

This function scrapes the stocks that constitute the FTSE100 index from the wikipedia page at <https://en.wikipedia.org/wiki/FTSE_100_Index#List_of_FTSE_100_companies>.

Usage

GetFTSE100Stocks(
  do.cache = TRUE,
  cache.folder = file.path(tempdir(), "BGS_Cache")
)

Arguments

do.cache

Use cache system? (default = TRUE)

cache.folder

Where to save cache files? (default = file.path(tempdir(), 'BGS_Cache') )

Value

A dataframe that includes a column with the list of tickers of companies that belong to the FTSE100 index

Examples

## Not run: 
df.FTSE100 <- GetFTSE100Stocks()
print(df.FTSE100$tickers)

## End(Not run)

BatchGetSymbols documentation built on May 1, 2022, 5:07 p.m.