Description Usage Arguments Value Examples
(HRJ) Add stock number to HRJ data frame based on its three letter stock name.
1 | updateStockByName(df, stockdat, by.x = "StockID", by.y = "StockID")
|
df |
A data frame with column "stock.name" containing the three letter stock name. |
stockdat |
A data frame with columns "Stock.Number" and "StockID".
"StockID" contains the three letter stock name. This data frame is obtained
using |
The function returns a data frame, same as used for the first argument, but with a "stock.number" column.
1 2 3 4 5 6 | ## Not run:
data.stock <- readStockData( 'STOCFILE.STF')
hrj.list <- readHRJtext(filepath)
hrj.list$hrj.cwt.list <- lapply(hrj.list$hrj.cwt.list, updateStockByName, data.stock$stocks.df)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.