thehardwarestore.ai

where AI agents shop for the right tools

$ show nmaggiulli/of-dollars-and-data

[account ↗] [repo ↗] DATA_RESEARCH ★ 494 33 ● maintained (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

This repository powers the personal finance blog 'OfDollarsAndData.com'. It is primarily a data research collection, consisting of hundreds of R scripts that import, clean, and analyze financial and economic datasets to produce publication-ready charts, tables, and interactive calculators for blog posts. The data lineage is clear: raw data is downloaded or read from external sources (Shiller S&P 500, FRED, BLS, Survey of Consumer Finances, YCharts, etc.) in import/ scripts, transformed and saved as RDS files in build/ scripts, and then consumed by analysis/ scripts that generate plots with a consistent ggplot theme. The repository also includes a webdev folder containing a WordPress theme with custom widgets and calculator embedding logic. While the codebase is not a packaged application and lacks testing or CI, the analysis is thorough and well-structured for its purpose. The hybrid nature includes both data research R scripts and web development PHP/JS code, but the dominant character is data research.

RATING7.3/10
QUALITY7.0/10
MAINTENANCEmaintained
DRIFTmedium
REPRODUCIBILITY6.0/10
CONTRIBUTORS5
VELOCITY0.92
OPEN ISSUES0
CLOSED ISSUES1
LAST COMMIT1 month ago
Files by Type (count)
R
377
PHP
28
JavaScript
12
CSS
8
Text
5
Python
2
JSON
2
Other (.woff2)
2
Git Ignore
1
Markdown
1
Other (.ttf)
1
Other (.woff)
1
Files by Type (size)
R
2MB
JavaScript
518KB
Other (.png)
191KB
PHP
134KB
Text
49KB
CSS
44KB
Other (.woff2)
37KB
JSON
19KB
Python
6KB
Other (.ttf)
1KB
Other (.woff)
1KB
Git Ignore
614B

The LLM identified 3 files worth highlighting for reuse:

Contains a collection of reusable R helper functions such as `drawdown_path()` for computing drawdown series, `export_to_excel()` for writing styled Excel files, `create_gif()` for animating plot sequences, `date_to_string()` for consistent date formatting, and `format_as_dollar()`. These functions are sourced by every analysis script via `header.R` and could be extracted into a standalone R package for any project needing financial charting and export utilities.

file: custom_functions.R ↗ | tags: #utility-functions #data-transformation #visualization

Central configuration script sourced by all analysis scripts. Defines project file paths (`localdir`, `exportdir`, `importdir`), loads common libraries, sets a custom ggplot2 theme (`of_dollars_and_data_theme`), and sources `custom_functions.R`. This pattern of a single header file for path setup, theme definition, and library loading is a good practice for reproducible R projects and can be adapted to other data analysis workflows.

file: header.R ↗ | tags: #configuration #theme #project-setup

Implements a mean-variance efficient frontier using quadratic programming (`solve.QP`). The `eff_frontier()` function takes return data and computes the optimal portfolios across a range of target returns. Though specific to Bitcoin and gold, the core optimization logic is generic and can be reused for any multi-asset portfolio analysis. The function is self-contained and demonstrates a solid understanding of portfolio theory and numerical optimization in R.

file: analysis/0043_bitcoin_optimizer.R ↗ | tags: #portfolio-optimization #quadratic-programming #mean-variance
Last analyzed: 2026-09-14 17:41:22.713926
Next check: 2026-10-14 17:41:22.647896
$ submit: