get_info: Gets raw financial statements from Google Finance.

Description Usage Arguments Details Value See Also Examples

Description

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

Usage

1
get_info(companies = qmjdata::companies)

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 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## Not run: 

## If no data frame is provided,
## the default is the package's
## companies data set.

get_info()

## If we want to get information
## for a specific data frame of
## companies, called comps

get_info(comps)

## If we then decide to quit the
## process partway through, and
## then resume downloading,
## the function usage is identical.

get_info(comps)

## If we quit the process partway
## through, and then decide to
## clean the data to start
## from scratch.

clean_downloads(comps)
get_info(comps)

## The raw financial data is
## difficult to use, so we'll
## clean the data for use in
## other functions.

fin_data <- get_info(comps)
financials <- tidyinfo(fin_data)


## End(Not run)

anttsou/qmj documentation built on May 10, 2019, 12:28 p.m.