ubci_index: get ubci index

Description Usage Arguments Value Examples

View source: R/ubci_index.R

Description

get ubci index data from source. Source is here.

Usage

1
2
ubci_index(index = "UBMI", from = "2000-01-01",
  to = as.character(Sys.Date()))

Arguments

index

default is UBMI.

from

Optional for various time series. A character string representing a start date in YYYY-MM-DD format.

to

Optional for various time series. A character string representing an end date in YYYY-MM-DD format. Default is system date today.

Value

Return type is tibble has columes contain index, date, open, high, low, close.

Examples

1
2
3
4
5
index <- ubci_index(index = "UBMI")
index

ubci_index(index = "UBMI", from="2018-05-15")
ubci_index(index = "UBMI", to="2018-05-15")

mrchypark/ubci documentation built on Nov. 15, 2018, 10:44 p.m.