getFilings {edgar}R Documentation

Retrieves EDGAR filings from SEC server


getFilings retrieves EDGAR filings for a specific CIKs, form-type, filing year and quarter of the filing.


getFilings(, form.type, filing.year, quarter, downl.permit, useragent)


vector of CIK number of firms in integer format. Suppress leading zeroes from CIKs. Keep = 'ALL' if needs to download for all CIKs.


character vector containing form type to be downloaded. form.type = 'ALL' if need to download all forms.


vector of four digit numeric year


vector of one digit quarter integer number. By deault, it is kept as c(1 ,2, 3, 4).


"y" or "n". The default value of downl.permit is "n". It asks a user permission to download fillings. This permission helps the user to decide in case if number of filings are large. Setting downl.permit = "y" will not ask for user permission to download filings.


Should be in the form of "Your Name"


getFilings function takes CIKs, form type, filing year, and quarter of the filing as input. It creates new directory "Edgar filings_full text" to store all downloaded filings. All the filings will be stored in the current working directory. Keep the same current working directory for further process. According to SEC EDGAR's guidelines a user also needs to declare user agent.


Function downloads EDGAR filings and returns download status in dataframe format with CIK, company name, form type, date filed, accession number, and download status.


## Not run: 

output <- getFilings( = c(1000180, 38079), c('10-K','10-Q'), 
                     2006, quarter = c(1, 2, 3), downl.permit = "n", useragent)
## download '10-Q' and '10-K' filings filed by the firm with 
CIK = 1000180 in quarters 1,2, and 3 of the year 2006. These 
filings will be stored in the current working directory.

## End(Not run)

[Package edgar version 2.0.5 Index]