Learn R Programming

ecd (version 0.9.2.4)

ecop.read_csv_by_symbol: Read option data csv

Description

Read option data csv into dataframe. The dataframe is enriched with Date, expiration_date, days.

Usage

ecop.read_csv_by_symbol(symbol, extdata_dir = NULL)

ecop.enrich_option_df(df)

Arguments

symbol

character, option data symbol

extdata_dir

optionally specify user's own extdata folder

df

dataframe, it is assumed to be in CBOE heading format

Value

dataframe

Examples

Run this code
# NOT RUN {
df <- ecop.read_csv_by_symbol("spxoption2")

# }

Run the code above in your browser using DataLab