Learn R Programming

ecd (version 0.6.4)

ecd.data: Read sample data

Description

Read sample data into xts by specifying the symbol. The xts object has two rows: the prices indexed by the dates.

Usage

ecd.data(symbol = "dji")

Arguments

symbol
Character for the symbol of the time series. Default: dji

Value

The xts object for the time series

Examples

Run this code
dji <- ecd.data()
wti <- ecd.data("wti")

Run the code above in your browser using DataLab