Last data update: 2014.03.03

R: Retrieves quarterly Master Index.
DownloadMasterIndexR Documentation

Retrieves quarterly Master Index.

Description

DownloadMasterIndex retrieves the quarterly Master Index from SEC site.

Usage

DownloadMasterIndex(year.array)

Arguments

year.array

year in integer or integer array containing years for which Master Index are to be downloaded.

Details

DownloadMasterIndex function takes 'year' as an input parameter from user, asks the user to locate working directory, download quarterly master index from ftp://ftp.sec.gov/edgar, strips the headers, converts it into tabular form, and merges such quarterly tables into yearly tables in RData format. Function creates new directory 'Master Index' into working directory to save these Rda Master Index. Please note, for all other functions in this package needs to locate the same working directory to access these Rda index files.

Value

Function retrieves quarterly Master Index files from ftp://ftp.sec.gov/edgar site and returns download status dataframe.

Examples

## Not run: 

report <- DownloadMasterIndex(1995)
## Download quarterly Master Index files for the year 1990 and stores into yearly
## 1995master.Rda file. It returns download report in dataframe format.

report <- DownloadMasterIndex(c(1994, 1995, 2006))
## Download quarterly Master Index files for the years 1994, 1995, 2006 and stores into
## different {year}master.Rda files. It returns download report in dataframe format.

## End(Not run)

Results