r-data-science
Installation
SKILL.md
R Data Science Skill
R-first data science workflows emphasizing tidyverse idioms, functional programming, and reproducible research.
Core Principles
- Tidyverse-first: Prefer tidyverse solutions; use data.table or base R when performance requires
- Pipelines over scripts: Use
|>(native pipe) for clarity;%>%acceptable in existing codebases - Functional style: Leverage purrr for iteration; avoid explicit loops
- Lazy evaluation: Use DuckDB/dbplyr to push computation to the database
- Reproducibility: Structure projects with targets for pipeline orchestration
Quick Reference
Data Import/Export
# CSV (readr - tidyverse)
df <- read_csv("data.csv", col_types = cols())