getMasterIndex
retrieves the quarterly master indexes from the U.S. SEC EDGAR server.
getMasterIndex(filing.year, useragent)
Function downloads quarterly master index files and stores them into the mentioned directory.
vector of integer containing filing years.
Should be in the form of "Your Name Contact@domain.com"
getMasterIndex function takes filing year as an input parameter from a user, downloads quarterly master indexes from the US SEC server. https://www.sec.gov/Archives/edgar/full-index/. It then strips headers from the master index files, converts them into dataframe, and merges such quarterly dataframes into yearly dataframe, and stores them in Rda format. It has ability to download master indexes for multiple years based on the user input. This function creates a new directory 'Master Indexes' into current working directory to save these Rda Master Index. Please note, for all other functions in this package need to locate the same working directory to access these Rda master index files. According to SEC EDGAR's guidelines a user also needs to declare user agent.