get_info: Gets raw financial statements from Google Finance.

View source: R/get_info.R

get_infoR Documentation

Gets raw financial statements from Google Finance.

Description

get_info grabs annual financial data for a given data frame of companies.

Usage

get_info(companies = qmj::companies_r3k16)

Arguments

companies

A data frame of companies. Must have a ticker column.

Details

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.

Value

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.

See Also

get_prices

clean_downloads

tidyinfo

Examples


# Takes more than 10 secs
if (reticulate::py_module_available("yfinance")) 
  get_info(companies_r3k16[companies_r3k16$ticker %in% c("AAPL", "AMZN"), ])



anttsou/qmj documentation built on Feb. 19, 2025, 5:25 p.m.