get_stock_dataset: Get a dataset of a list of stock_cd from a table in stock_db

Description Usage Arguments Value Methods (by class) Examples

Description

Generic function to get a dataset of a list of stock_cd from table in stock

Usage

1
2
3
4
## S3 method for class 'gta_db'
get_stock_dataset(stock_db, table_name, stock_cd_list = NULL)

get_stock_dataset(stock_db, table_name, stock_cd_list)

Arguments

stock_db

a stock database object to operate

table_name

name of target table

stock_cd_list

a list of stock cd, default value of NULL means all stock data will be returned

Value

A data frame on success, or NULL

Methods (by class)

Examples

1
2
3
ds_trd_dalyr.df <- get_stock_dataset(stock_db,
                            table_name = "TRD_Dalyr_日个股回报率",
                            stock_cd_list = c("600066", "000550"))

chriszheng2016/ZStockModels documentation built on May 11, 2019, 6:26 p.m.