Learn R Programming

lares (version 5.1.4)

etf_sector: ETF's Sectors Breakdown

Description

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

Usage

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

Value

data.frame with ETF break.down data by sector

Arguments

etf

Character Vector. Which ETFs you wish to scrap?

quiet

Boolean. Keep quiet? If not, informative messages will be printed.

cache

Boolean. Use daily cache if available?

See Also

Other Investment: daily_portfolio(), daily_stocks(), splot_change(), splot_divs(), splot_etf(), splot_growth(), splot_roi(), splot_summary(), splot_types(), stocks_file(), stocks_obj(), stocks_quote(), stocks_report()

Examples

Run this code
# \donttest{
etf_sector(etf = "VTI")
# }

Run the code above in your browser using DataLab