I am using "edgarWebR" package to get the data from USSEC EDGAR website. There is a function in the package called "company_filings", which has several arguments and I would like to use four of the arguments and it should be like this -
company_filings (comp, type = c('10-K','10-Q'), before = 20181231, count = 40)
where comp is a vector defined as follows -
comp <- c ("AAPL", "GOOG", "INTC")
but the company_filings function accepts only one element at a time in comp vector - for example -
company_filings ("AAPL", type = c('10-K','10-Q'), before = 20181231, count = 40)
Actually, I use the following code to get the results for all elements in comp vector -
filing <- Reduce(rbind, lapply(comp, company_filings))
but it does not work. Can anybody help me in this respect?
I appreciate your help.