DownloadFilings retrieves EDGAR filings for the specified CIK, form-type,
and year mentioned in function parameters.
Usage
DownloadFilings(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.
Details
DownloadFilings function takes year, form_type, and CIK as an input. It asks the
user to locate working directory. Working directory should contain 'Master Index'
directory which contains master Rda files for specific years downloaded using
DownloadMasterIndex 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.
Value
Function downloads EDGAR filings from ftp://ftp.sec.gov/edgar site
and returns download status dataframe.
Examples
## Not run:
rep <- DownloadFilings(1994, 100030, 'ALL')
## download all filings filed by the firm with CIK=100030 in the year 1994.
## Generates download report in dataframe.
rep <- DownloadFilings(2006, 1000180, '10-K')
## download '10-K' filings filed by the firm with CIK=1000180 in the year 2006.
## Generates download report in dataframe.
## End(Not run)