The specification is exactly similar to this one:
output1 <- getFilings(cik.no = unlisted_CIK, c("N-CSR"), list_of_years,
useragent = .....)
The problem is the following. Output1 works perfectly. However, header_info gives an error and I don't know what to do.
*Error in $<-.data.frame(*tmp*, "sic", value = character(0)) : *
replacement has 0 rows, data has 10*
The error comes up after the filings were downloaded and the header information was scraped. I tried creating a dataframe before using getFilingHeader but that did not solve the problem.
Mutual funds don't have standard industrial codes ("SIC"), which accounts for the zero rows error. My first suggestion is to write to the package author at the address shown in the Description file in the help("edgar") index page. Otherwise, the function can be copied under new name and the references to sic removed, which may solve the immediate problem. However, no assurances can be given that there are others lurking.