Learn R Programming

edgar (version 1.0.9)

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 in dataframe.

Details

getFilings function takes year, form-type, and CIK as an input. Working directory must contains master index (in Rda) files for input year which can be 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 dataframe.

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 dataframe.
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab