index_data: Get Historical Data for a CFM Index

Description Usage Arguments Value Note Examples

View source: R/index_data.R

Description

Given a valid index code available, this function returns the corresponding historical data for the specified period (start_date until end_date). The returned dataframe includes Session, Value and Change columns

Usage

1
index_data(index_code, start_date, end_date)

Arguments

index_code

A character vector of length one. Use get_indexes() to list all valid indexes in CFM

start_date

A character vector of length one matching the format 'dd/mm/yyyy'

end_date

A character vector of length one matching the format 'dd/mm/yyyy'

Value

data.frame

Note

The difference between end_date and start_date should be less than or equal 3 years.

Examples

1
2
## Not run: index_data('MASI', '01/01/2014', '31/12/2016')
## Not run: index_data('MADEX', '01/01/2017', '30/06/2017')

blnash508/cfm documentation built on Sept. 23, 2017, 12:13 a.m.