Skip to contents

etf_sector() scraps etf.com data for sector breakdown on ETFs. Use splot_etf() for visualization.

Usage

etf_sector(etf = "VTI", quiet = FALSE, cache = TRUE)

Arguments

etf

Character Vector. Which ETFs you wish to scrap?

quiet

Boolean. Keep quiet? If not, message will be shown.

cache

Boolean. Use daily cache if available?

Value

data.frame with ETF break.down data by sector

See also

Other Investment: splot_summary(), stocks_file(), stocks_quote()

Examples

# \donttest{
etf_sector(etf = "VTI")
#> >>> Downloading sectors for each ETF...
#> Some ticks were not found as ETF: 'VTI'
#> No data found for given Tickers!
#> NULL
# }