classify_constituent_data: Classify constituent data

Description Usage Arguments Value

Description

The constituent data is downloaded in a melted format so as not to incurr in reading errors. After that we have to understand the structure of the csv files. For this reason we assume there exsist fix templates. This function assigns templates to constituent data: for instance, if a dataframe is in template_1 format than classify_constituent_data will assign to it the string parse_template_1, which is the function used for parsing the dataframe

Usage

1
2
classify_constituent_data(melted_constituents_list, region = "US",
  n_template = 3)

Arguments

melted_constituents_list

list of dataframes with the constituent csv file in melted format downloaded using the readr::melt_csv function

region

IShares geographical region (e.g. US)

n_template

number of template data model availabe

Value

a named-list with the names of the parsing functions for each constituent dataframe. If no template matches the data NULL is returned instead


skiamu/ETF documentation built on April 28, 2020, 6:08 a.m.