Если вы читаете help(getFillingsHTML)
:
getFilingsHTML {edgar}
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).
Для cik.no
это означает подавление начальных нулей.
Таким образом:
getFilingsHTML(cik.no = "1318605",
form.type = '10-K',
filing.year = 2017)
#Downloading fillings. Please wait...
# #|========================================================================================================================| 100%
#Scrapping full EDGAR and converting to HTML...
# #|========================================================================================================================| 100%
#HTML filings are stored in 'Edgar filings_HTML view' directory. cik company.name form.type date.filed accession.number
#1 1318605 Tesla Inc 10-K 2017-03-01 0001564590-17-003118