R · Quarto · dplyr · tidyr · Data quality · Reproducible reporting
Three independent analyses demonstrate the workflow from untidy source tables to analysis-ready data, with validation, missing-data audits, exploratory summaries and documented limitations.
Central question: How can differently structured datasets be reshaped and checked before their values are used to make comparisons?
| Dataset | Transformation and analysis | Source report | Rendered output |
|---|---|---|---|
| U.S. state population | Reshapes population estimates for the ten highest-ranked states from wide to tidy state/period records, checks uniqueness and missingness, and compares population change. | Quarto | HTML |
| New York income distribution | Preserves source rows, restructures mixed-value columns into long format, audits numeric parsing and missing values, and explores descriptive distributions. | Quarto | HTML |
| U.S. tuition | Normalizes headings, pivots wide measures into long records, validates row/cell preservation, and explores measurement distributions and missingness. | Quarto | HTML |
dplyr and tidyrggplot2 and QuartoThe repository includes the original source files and generated tidy outputs. Examples:
Install R, Quarto, and the R packages dplyr, tidyr, readr, stringr, ggplot2, knitr, and scales. Clone or download the repository and render each report from its root, for example:
quarto render census_population_analysis.qmd --to html
quarto render ny_income_distribution_analysis.qmd --to html
quarto render us_tuition_analysis.qmd --to html
Review each report’s data-import section if running from a different working directory: some analyses check repository-local file locations and/or hosted copies.
These are descriptive data-preparation exercises, not causal studies. The population series includes an April 2020 estimates base rather than equally spaced annual observations. Income and tuition comparisons require validation of source definitions, units, time periods and weighting. The reports explicitly retain or audit missing and unparseable values instead of silently treating them as zeros.
Academic project — DATA 607.