Description Usage Arguments Value Functions See Also
Generic function to get indicator timeseries from specified source in stock_db.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | get_indicators_from_source(
stock_db,
indicator_source,
indicator_codes = NULL,
ouput_format = c("long", "wide"),
...
)
## S4 method for signature 'gta_db'
get_indicators_from_source(
stock_db,
indicator_source,
indicator_codes,
ouput_format,
...,
data_filters,
date_fields,
retain_fields
)
|
stock_db |
A stock database object to operate. |
indicator_source |
A name of table or file(with extension) in which indicators are stored. For file, formats of rds,csv are supported. |
indicator_codes |
A vector of indicator code. Default NULL return all indicators in the source. |
ouput_format |
Output format for data frame, i.e "long" and "wide":
|
... |
Extra arguments to be passed to methods. |
data_filters |
A list of filter to apply on result data. The list consists of items which has field as its name and filter expr string as its content, default is list( typrep = "typrep == 'A'", markettype = "markettype == 21"). Only valid for gta_db. |
date_fields |
A character vector of possible date field in original data, which will be renamed as "date". default is c("date", "accper", "trddt", "trdmnt", "trdynt","clsdt", "shrchdgt"). Only valid for gta_db. |
retain_fields |
A character vector of possible fields to retain in final dataset, default is c("stkcd", "indcd"). Only valid for gta_db. |
A data frame of indicator timeseries if succeed, otherwise NULL.
get_indicators_from_source,gta_db-method
: get indicator timeseries from
specified source in a database of gta_db class
Other stock_db generics:
close_stock_db()
,
code2name()
,
dir_path_db()
,
get_factors_info()
,
get_factors()
,
get_financial_report()
,
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.