Skip to content

tidyquant

Tidy Quantitative Financial Analysis

v1.0.12 · Mar 16, 2026 · MIT + file LICENSE

Description

Bringing business and financial analysis to the 'tidyverse'. The 'tidyquant' package provides a convenient wrapper to various 'xts', 'zoo', 'quantmod', 'TTR' and 'PerformanceAnalytics' package functions and returns the objects in the tidy 'tibble' format. The main advantage is being able to use quantitative functions with the 'tidyverse' functions including 'purrr', 'dplyr', 'tidyr', 'ggplot2', 'lubridate', etc. See the 'tidyquant' website for more information, documentation and examples.

Downloads

16.5K

Last 30 days

955th

46.7K

Last 90 days

215.9K

Last year

Trend: +16.3% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 21, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 3 ERROR · 0 FAILURE Mar 11, 2026
ERROR r-devel-linux-x86_64-fedora-gcc

examples

Running examples in ‘tidyquant-Ex.R’ failed
The error most likely occurred in:

> ### Name: tq_mutate
> ### Title: Mutates quantitative data
> ### Aliases: tq_mutate tq_mutate_ tq_mutate_xy tq_mutate_xy_
> ###   tq_mutate_fun_options tq_transmute tq_
...[truncated]...
ort “DCOILWTICO”.
cannot open the connection

Error in tq_mutate_.default(data = data, select = lazyeval::expr_text(select),  : 
  data must be a tibble or data.frame object
Calls: %>% -> tq_mutate -> tq_mutate_ -> tq_mutate_.default
Execution halted
ERROR r-patched-linux-x86_64

examples

Running examples in ‘tidyquant-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: tq_mutate
> ### Title: Mutates quantitative data
> ### Aliases: tq_mutate tq_mutate_ tq_mutate_xy tq
...[truncated]...
ort “DCOILWTICO”.
cannot open the connection

Error in tq_mutate_.default(data = data, select = lazyeval::expr_text(select),  : 
  data must be a tibble or data.frame object
Calls: %>% -> tq_mutate -> tq_mutate_ -> tq_mutate_.default
Execution halted
ERROR r-oldrel-windows-x86_64

examples

Running examples in 'tidyquant-Ex.R' failed
The error most likely occurred in:

> ### Name: tq_mutate
> ### Title: Mutates quantitative data
> ### Aliases: tq_mutate tq_mutate_ tq_mutate_xy tq_mutate_xy_
> ###   tq_mutate_fun_options tq_transmute tq_
...[truncated]...
ort "DCOILWTICO".
cannot open the connection

Error in tq_mutate_.default(data = data, select = lazyeval::expr_text(select),  : 
  data must be a tibble or data.frame object
Calls: %>% -> tq_mutate -> tq_mutate_ -> tq_mutate_.default
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (8)

Dependency Network

Dependencies Reverse dependencies dplyr ggplot2 httr httr2 curl jsonlite lazyeval lubridate magrittr PerformanceAnalytics RobStatTM quantmod purrr readr readxl +10 more dependencies edgarfundamentals FinanceGraphs RTL anomalize bitmexr bspcov modeltime.resample sweep tidyquant

Version History

updated 1.0.12 ← 1.0.11 diff Mar 16, 2026
new 1.0.11 Mar 10, 2026
updated 1.0.11 ← 1.0.10 diff Feb 12, 2025
updated 1.0.10 ← 1.0.9 diff Jan 7, 2025
updated 1.0.9 ← 1.0.8 diff Sep 1, 2024
updated 1.0.8 ← 1.0.7 diff Aug 18, 2024
updated 1.0.7 ← 1.0.6 diff Mar 30, 2023
updated 1.0.6 ← 1.0.5 diff Nov 15, 2022
updated 1.0.5 ← 1.0.4 diff Sep 7, 2022
updated 1.0.4 ← 1.0.3 diff May 19, 2022
updated 1.0.3 ← 1.0.2 diff Mar 4, 2021
updated 1.0.2 ← 1.0.1 diff Oct 20, 2020
updated 1.0.1 ← 1.0.0 diff Jul 1, 2020
updated 1.0.0 ← 0.5.10 diff Mar 3, 2020
updated 0.5.10 ← 0.5.9 diff Jan 26, 2020
updated 0.5.9 ← 0.5.8 diff Dec 14, 2019
updated 0.5.8 ← 0.5.7 diff Oct 10, 2019
updated 0.5.7 ← 0.5.6 diff Sep 20, 2019
updated 0.5.6 ← 0.5.5 diff Apr 21, 2019
updated 0.5.5 ← 0.5.4 diff May 8, 2018