Description Usage Arguments Details Value See Also Examples
Calculates market growth, payouts, safety, and profitability of our list of companies for later processing.
1 2 | market_data(companies = qmjdata::companies,
financials = qmjdata::financials, prices = qmjdata::prices)
|
companies |
A data frame of company names and tickers. |
financials |
A data frame containing financial information for the given companies. |
prices |
A data frame containing the daily market closing prices and returns. |
All parameters default to package data sets and must
be formatted similarly to a data frame produced by
tidy_prices
and tidyinfo
.
A data frame containing company names, tickers, profitability z-scores, growth z-scores, safety z-scores, payout z-scores, and quality z-scores. Organized by quality in descending order.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
## To immediately get quality scores using
## package data sets.
market_data()
## If we desire to produce a set of quality
## scores for a specific data frame of
## companies, which we'll call companies.
# Remove old temporary data, if present.
clean_downloads(companies)
# Get raw financial and price data.
raw_financials <- get_info(companies)
raw_prices <- get_prices(companies)
# Clean raw data for use in market_data.
financials <- tidyinfo(raw_financials)
prices <- tidy_prices(raw_prices)
quality_scores <- market_data(companies, financials, prices)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.