Learn R Programming

edgar (version 1.0.5)

getFilings: Retrieves EDGAR filings from SEC site.

Description

getFilings retrieves EDGAR filings for the specified CIK, form type, and year mentioned in function parameters.

Usage

getFilings(year, cik.no, form.type)

Arguments

year
an integer specifies year for which EDGAR filings are to be downloaded.
cik.no
an integer containing specific CIK number for which EDGAR filings are to be downloaded. cik.no = 'ALL' if required to download for all CIK's.
form.type
character string containing specific Form type to be downloaded. form.type = 'ALL' if required to download all form-types.

Value

Function downloads EDGAR filings and returns download status data frame.

Details

getFilings function takes year, form type, and CIK as an input. Working directory should contain 'Master Index' directory which contains master Rda files for specific years downloaded using getMasterIndex function. Function creates new directory 'Edgar filings' to store all downloaded filings. Please note, for all other functions in this package needs to locate the same working directory.

Examples

Run this code
## Not run: 
# 
# report <- getFilings(1994, 100030, 'ALL') 
# ## download all filings filed by the firm with CIK=100030 in the year 1994. 
# ## Generates download report in data frame.
# 
# report <- getFilings(2006, 1000180, '10-K')
# ## download '10-K' filings filed by the firm with CIK=1000180 in the year 2006. 
# ## Generates download report in data frame.
# ## End(Not run)

Run the code above in your browser using DataLab