tidyquant 0.5.1

Tidy Quantitative Financial Analysis

Homepage: https://github.com/business-science/tidyquant

Platform: CRAN

Language: R

License: MIT

View on registry: https://cran.r-project.org/package=tidyquant

Documentation: http://cran.r-project.org/web/packages/tidyquant/tidyquant.pdf

Direct download link: https://cran.r-project.org/src/contrib/tidyquant_0.5.1.tar.gz


tidyquant

Travis-CI Build Status codecov CRAN_Status_Badge

Bringing financial analysis to the tidyverse

tidyquant integrates the best resources for collecting and analyzing financial data, zoo, xts, quantmod, TTR, and PerformanceAnalytics, with the tidy data infrastructure of the tidyverse allowing for seamless interaction between each. You can now perform complete financial analyses in the tidyverse.

Benefits

  • A few core functions with a lot of power
  • Integrates the quantitative analysis functionality of zoo, xts, quantmod, TTR, and now PerformanceAnalytics
  • Designed for modeling and scaling analyses using the the tidyverse tools in R for Data Science
  • Implements ggplot2 functionality for beautiful and meaningful financial visualizations
  • User-friendly documentation to get you up to speed quickly!

One-Stop Shop for Serious Financial Analysis

With tidyquant all the benefits add up to one thing: a one-stop shop for serious financial analysis!

Core Functions

  • Getting Financial Data from the web: tq_get(). This is a one-stop shop for getting web-based financial data in a "tidy" data frame format. Get data for daily stock prices (historical), key statistics (real-time), key ratios (historical), financial statements, dividends, splits, economic data from the FRED, FOREX rates from Oanda.

  • Manipulating Financial Data: tq_transmute() and tq_mutate(). Integration for many financial functions from xts, zoo, quantmod,TTR and PerformanceAnalytics packages. tq_mutate() is used to add a column to the data frame, and tq_transmute() is used to return a new data frame which is necessary for periodicity changes.

  • Coercing Data To and From xts and tibble: as_tibble()and as_xts(). There are a ton of Stack Overflow articles on converting data frames to and from xts. These two functions can be used to answer 99% of these questions.

  • Performance Analysis and Portfolio Analysis: tq_performance() and tq_portfolio(). The newest additions to the tidyquant family integrate PerformanceAnalytics functions. tq_performance() converts investment returns into performance metrics. tq_portfolio() aggregates a group (or multiple groups) of asset returns into one or more portfolios.

Comparing Stock Prices

Visualizing the stock price volatility of four stocks side-by-side is quick and easy...

Evaluating Stock Performance

What about stock performance? Quickly visualize how a $10,000 investment in various stocks would perform.

Evaluating Portfolio Performance

Ok, stocks are too easy. What about portfolios? With the PerformanceAnalytics integration, visualizing blended portfolios are easy too!

  • Portfolio 1: 50% FB, 25% AMZN, 25% NFLX, 0% GOOG
  • Portfolio 2: 0% FB, 50% AMZN, 25% NFLX, 25% GOOG
  • Portfolio 3: 25% FB, 0% AMZN, 50% NFLX, 25% GOOG
  • Portfolio 4: 25% FB, 25% AMZN, 0% NFLX, 50% GOOG

This just scratches the surface of tidyquant. Here's how to install to get started.

Installation

Development Version with Latest Features:

# install.packages("devtools")
devtools::install_github("business-science/tidyquant")

CRAN Approved Version:

install.packages("tidyquant")

Further Information

The tidyquant package includes several vignettes to help users get up to speed quickly:

  • TQ00 - Introduction to tidyquant
  • TQ01 - Core Functions in tidyquant
  • TQ02 - R Quantitative Analysis Package Integrations in tidyquant
  • TQ03 - Scaling and Modeling with tidyquant
  • TQ04 - Charting with tidyquant
  • TQ05 - Performance Analysis with tidyquant

See the tidyquant vignettes for further details on the package.


Imports Dependencies Requirements Latest Stable Latest Release Licenses
broom * 0.4.2 0.4.2 MIT
curl * 0.9.7 2.5 MIT
devtools * 1.12.0 1.12.0 GPL-2.0+
dplyr * 0.5.0 0.5.0 MIT
ggplot2 * 2.2.1 2.2.1 AML
httr * 1.2.1 1.2.1 MIT
lazyeval * 0.2.0 0.2.0 GPL-3.0
magrittr * 1.0.1 1.5 MIT
purrr * 0.2.2 0.2.2 AML
Quandl * 2.8.0 2.8.0 MIT
readr * 1.1.0 1.1.0 Sendmail
Explore the resolved imports dependency tree for tidyquant 0.5.1
Depends Dependencies Requirements Latest Stable Latest Release Licenses
lubridate * 1.6.0 1.6.0 GPL-2.0
PerformanceAnalytics * 1.4.3541 1.4.3541 GPL-2.0+
quantmod * 0.4-8 GPL-3.0
R *
tidyverse * 1.1.1 1.1.1 AML
Explore the resolved depends dependency tree for tidyquant 0.5.1

Releases

0.5.1 April 24, 2017
0.5.0 April 03, 2017
0.4.0 March 03, 2017
0.3.0 January 21, 2017
0.2.0 January 08, 2017
0.1.0 December 31, 2016

Project Statistics

SourceRank 9
Dependencies 0
Dependent projects 0
Dependent repositories 1
Total releases 6
Latest release
First release
Stars 97
Forks 15
Watchers 26
Contributors 2
Repo Size: 23.6 MB

Top Contributors See all

Matt Dancho DavisVaughan

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2017-04-24 13:35:18 UTC

Login to resync this project