Description Usage Arguments Value Author(s) Examples
Obtains the sector information of a set of stocks.
1 | getSectorInfo(stocks, stock_sector_database)
|
stocks |
vector containing the stock names |
stock_sector_database |
matrix containing the pairing of stocks and sectors (first column contains the stock names and second column sector names) |
A list with the following components:
|
integer vector with each number being an index representing one specific sector |
|
string vector containing sector names sorted corresponding to their sector index |
ZHOU Rui and Daniel P. Palomar
1 2 | mystocks <- c("AAPL", "ABBV", "AET", "AMD", "APD", "AA","AVY", "A", "ADI", "IBM")
getSectorInfo(mystocks)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.