get_info | R Documentation |
get_info
grabs annual financial data for a given data frame of companies.
get_info(companies = qmj::companies_r3k16)
companies |
A data frame of companies. Must have a ticker column. |
For each ticker in the data frame of companies, get_info
grabs
financial data using the quantmod package and generates a list with
three sub-lists. Also writes .RData files to the user's temporary directory.
If cancelled partway through, get_info
is able to find and re-read this
data, quickly resuming its progress. Once complete, get_info
deletes
all used temporary data.
Parameter data frame defaults to provided companies_r3k16
data set if not specified.
A list with three elements. Each element is a list containing all financial documents of a specific type for each company. These lists are, in order, all cash flow statements, all income statements, and all balance sheets.
get_prices
clean_downloads
tidyinfo
# Takes more than 10 secs
if (reticulate::py_module_available("yfinance"))
get_info(companies_r3k16[companies_r3k16$ticker %in% c("AAPL", "AMZN"), ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.