load_stock_return: Load stock return time-series in tsibble

Description Usage Arguments Value

View source: R/fct_testdata.R

Description

Load stock return time-series in tsibble

Usage

1
2
3
4
5
load_stock_return(
  use_online_data = FALSE,
  period_type = c("month", "quarter", "year"),
  stock_codes = c("000651", "000333", "600066", "000550", "600031", "000157")
)

Arguments

use_online_data

A logical to determine whether to use test data from database or not. Default FALSE means to use achieved data for tests.

period_type

A character of period type, like "month", "quarter", "year".

stock_codes

A character vector of stock codes to load. NULL means to load all stocks.

Value

A tsibble of stock return time-series.


chriszheng2016/zstexplorer documentation built on June 13, 2021, 9:47 a.m.