getFilingsHTML {edgar}R Documentation

Get HTML view of EDGAR filings

Description

getFilingsHTML retrieves complete EDGAR filings and store them in HTML format for view.

Usage

getFilingsHTML(cik.no, form.type, filing.year, quarter)

Arguments

cik.no

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

form.type

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

filing.year

vector of four digit numeric year

quarter

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

Details

getFilingsHTML function takes CIK(s), form type(s), filing year(s), and quarter of the filing as input. The function imports edgar filings downloaded via getFilings function; otherwise, it downloads the filings which are not already been downloaded. It then reads the downloaded filings, scraps filing text excluding exhibits, and saves the filing contents in 'Edgar filings_HTML view' directory in HTML format. The new directory 'Edgar filings_HTML view' will be automatically created by this function.

Value

Function saves EDGAR filings in HTML format and returns filing information in dataframe format.

Examples

## Not run: 

output <- getFilingsHTML(cik.no = c(1000180, 38079), c('10-K','10-Q'), 
                         2006, quarter = c(1, 2, 3))

## 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.3 Index]