Title: | Financial Data from U.S. Securities and Exchange Commission |
---|---|
Description: | Download and display company financial data from the U.S. Securities and Exchange Commission's EDGAR database. It contains a suite of functions with web scraping and XBRL parsing capabilities that allows users to extract data from EDGAR in an automated and scalable manner. See <https://www.sec.gov/edgar/searchedgar/companysearch.html> for more information. |
Authors: | Seward Lee |
Maintainer: | Seward Lee <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.4 |
Built: | 2024-11-09 03:22:10 UTC |
Source: | https://github.com/sewardlee337/finreportr |
Extracts and displays listing of annual reports filed by a company in a data frame.
AnnualReports(symbol, foreign = FALSE)
AnnualReports(symbol, foreign = FALSE)
symbol |
A character vector specifying the stock symbol of the company of interest. |
foreign |
A logical vector indicating whether the company is domestic or foreign. |
## Not run: AnnualReports("TSLA") AnnualReports("BABA", foreign = TRUE) ## End(Not run)
## Not run: AnnualReports("TSLA") AnnualReports("BABA", foreign = TRUE) ## End(Not run)
Extracts and displays basic information relating to a given company in a data frame.
CompanyInfo(symbol)
CompanyInfo(symbol)
symbol |
A character vector specifying the stock symbol of the company of interest. |
## Not run: CompanyInfo("GOOG") CompanyInfo("TSLA") ## End(Not run)
## Not run: CompanyInfo("GOOG") CompanyInfo("TSLA") ## End(Not run)
Extracts and displays balance sheet from the annual report of a given company. This functionality is only available for queries fo balance sheets that belong to domestic companies. Note that all data returned by this function comes from the company's Form 10-K, not Form 10-K/A.
GetBalanceSheet(symbol, year)
GetBalanceSheet(symbol, year)
symbol |
A character vector specifying the stock symbol of the company of interest. |
year |
A numeric vector specifying the year during which the annual report was filed. |
## Not run: GetBalanceSheet("FB", 2016) ## End(Not run)
## Not run: GetBalanceSheet("FB", 2016) ## End(Not run)
Extracts and displays statement of cash flow from the annual report of a given company. This functionality is only available for queries of cash flow statements that belong to domestic company. Note that all data returned by this function comes from the company's Form 10-K, not Form 10-K/A.
GetCashFlow(symbol, year)
GetCashFlow(symbol, year)
symbol |
A character vector specifying the stock symbol of the company of interest. |
year |
A numeric vector specifying the year during which the annual report was filed. |
## Not run: GetCashFlow("FB", 2016) ## End(Not run)
## Not run: GetCashFlow("FB", 2016) ## End(Not run)
Extracts and displays income statement from the annual report of a given company. This functionality is only available for queries of income statements that belong to domestic companies. Note that all data returned by this function comes from the company's 10-K, not 10-K/A.
GetIncome(symbol, year)
GetIncome(symbol, year)
symbol |
A character vector specifying the stock symbol of the company of interest. |
year |
A numeric vector specifying the year during which the annual report was filed. |
## Not run: GetIncome("FB", 2016) ## End(Not run)
## Not run: GetIncome("FB", 2016) ## End(Not run)
A dataset containing SIC codes and industries that they represent
siccodes
siccodes
A data frame with 444 rows and 2 variables:
SIC: Standard Industrial Classification Code
industry: Industry Title
https://www.sec.gov/info/edgar/siccodes.htm
A dataset containing state and country codes used in the SEC EDGAR database.
statecodes
statecodes
A data frame with 310 rows and 2 variables:
state: State or Country Code
state.name: State or Country Name
https://www.sec.gov/edgar/searchedgar/edgarstatecodes.htm