Description Usage Arguments Value Note See Also Examples
Uses getStockInfo.sector
and/or cleanSector
to
retrieve uniform sector name for input. One of either
ticker
or sector
must be supplied.
1 2 3 | getSectorETF(ticker, sector)
getSectorETF.sector(sector)
|
ticker |
Character; string of a stock's ticker |
sector |
Character; string of a sector |
Character; string of sector ETF's ticker
getSectorETF
is a wrapper of various sub-functions.
If both ticker
and sector
are supplied,
sector
will take priority.
getSectorETF.sector
is a helper function for
getSectorETF
that works on it's own.
getStockInfo.sector
: to retrieve sector
that corresponds to input ticker. cleanSector
: to
coerce sector into uniform name.
Other data retrieval functions: getHoldings.SMIF
,
getStockInfo
, getSymbols.SMIF
1 2 3 | getSectorETF(ticker = "NVDA")
getSectorETF(sector = "Consumer Non-Durables")
getSectorETF.sector("Telecom")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.