Description Usage Arguments Value Functions See Also
Generic function to get path of data directory from stock_db.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | dir_path_db(
stock_db,
dir_id = c("DIR_DB_DATA", "DIR_DB_DATA_SOURCE", "DIR_DB_DATA_ORIGIN",
"DIR_DB_DATA_LOG", "DIR_DB_DATA_INDICATOR"),
force = TRUE,
...
)
## S4 method for signature 'gta_db'
dir_path_db(
stock_db,
dir_id = c("DIR_DB_DATA", "DIR_DB_DATA_SOURCE", "DIR_DB_DATA_ORIGIN",
"DIR_DB_DATA_LOG", "DIR_DB_DATA_INDICATOR"),
force = TRUE,
...
)
|
stock_db |
A stock database object to operate. |
dir_id |
A character id of directory.
|
force |
Whether return result if dir doesn't existed. Default TRUE, return result if dir doesn't exist. |
... |
Extra arguments to be passed to methods. |
A full path of dir if succeed, otherwise NULL. If the path of dir doesn't exist and force = FALSE, it will raise a error.
dir_path_db,gta_db-method: get path of data directory from a database of
gta_db class
Other stock_db generics:
close_stock_db(),
code2name(),
get_factors_info(),
get_factors(),
get_financial_report(),
get_indicators_from_source(),
get_indicators_info(),
get_indicators(),
get_industry_info(),
get_market_return(),
get_profile(),
get_riskfree_rate(),
get_spt_stocks(),
get_stock_dataset(),
get_stock_industry(),
get_stock_info(),
get_stock_return(),
get_table_dataset(),
init_stock_db(),
list_stock_tables(),
name2code(),
open_stock_db(),
save_indicators_to_source()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.