How meaganmcgourty-phd/oddballtechassessment works
1. This repository is a small, file-based R data pipeline rather than a multi-service application. The entire workflow is centered in a single R Markdown document that reads raw CSVs, applies monthly deltas, builds final tables, and renders a report.
2. The input boundary is the data/initial folder plus monthly delta files in data/delta. The initial extract represents the January 2025 starting state, and the February/March delta files encode changes that must be applied chronologically across four datasets: agents, contact_centers, service_categories, and interactions.
3. The main processing subsystem is the RMarkdown pipeline itself. It uses standard tidyverse-style data wrangling libraries (dplyr, readr, lubridate, tidyr) to load, transform, and combine the CSVs. The repository does not show a separate package or service layer; the report document is both orchestration and documentation.
4. The data model is split into dimension-like tables and a fact-like table. agents, contact_centers, and service_categories behave as reference tables that are updated over time, while interactions is the event table that carries the actual support activity to be analyzed.
5. A key architectural behavior is chronological delta application. The pipeline starts from the initial snapshots, then applies February and March changes in order, producing “final” versions of each table in data/output. This makes the final state reproducible from raw inputs rather than manually curated outputs.
6. Time handling is part of the transformation boundary. Source timestamps are in UTC, but the pipeline converts them to America/New_York before monthly grouping. That local-time conversion affects reporting correctness because it determines which month each interaction belongs to.
7. The reporting layer aggregates the transformed interaction data into support_report.csv, grouped by month, contact center, and department. This is the business-facing output used to answer the quarter-level questions about volume and average call duration.
8. There is explicit handling for incomplete or broken reference data. If a delta deletes a dimension record that is still referenced by an interaction, the interaction is preserved and the missing dimension value is labeled Unknown rather than dropping the row. That design keeps fact counts intact and avoids data loss in the report.
9. Missing monthly deltas are treated as a normal condition, not an error. For example, there is no February delta for contact_centers, so the pipeline must support “no change this month” without breaking the full run.
10. The output boundary is the data/output folder. It contains the finalized table extracts (final_agents.csv, final_contact_centers.csv, final_service_categories.csv, final_interactions.csv) plus the aggregate report (support_report.csv). The generated PDF in the repo shows that the same RMarkdown document also serves as the presentation/reporting artifact.
11. The runtime/tooling requirements are local and lightweight: R 4.0+ with RStudio, plus tinytex for PDF rendering. flextable is used for presentation-quality tables in the knitted report, while styler suggests the author intended the code in the Rmd to be formatted/readable as part of the deliverable.
12. In architecture-diagram terms, the flow is: raw CSV inputs → RMarkdown transformation engine → cleaned/enriched final dimension and fact tables → monthly aggregate report → CSV/PDF outputs. The important boundaries are raw vs. transformed data, dimensions vs. fact data, and UTC source time vs. local reporting time.
Main entry points: Oddball Technical Assessment Pipeline - Customer Support Report.Rmd R Markdown · initial Initial data · agents_delta_202502.csv Agents delta · agents_delta_202503.csv Agents delta
Components 24
Inputs
Raw snapshots and monthly change files
- Initial data · January 2025 starting state for all core tables
data/initial - Agents delta · February update for agents
data/delta/agents_delta_202502.csv - Agents delta · March update for agents
data/delta/agents_delta_202503.csv - Centers delta · March update for contact centers; February has no change file
data/delta/contact_centers_delta_202503.csv - Services delta · February update for service categories
data/delta/service_categories_delta_202502.csv - Services delta · March update for service categories
data/delta/service_categories_delta_202503.csv - Interactions delta · February event updates
data/delta/interactions_delta_202502.csv - Interactions delta · March event updates
data/delta/interactions_delta_202503.csv
R Markdown pipeline
Single-document transformation and reporting flow
- R Markdown · Single document that runs the pipeline and renders the report
Oddball Technical Assessment Pipeline - Customer Support Report.Rmd - Load & wrangle · Reads CSVs and applies dplyr/readr/tidyr transformations
- Apply deltas · Replays monthly changes in order to reconstruct final tables
- Time normalize · Converts source timestamps from UTC to America/New_York before grouping
- Agents · Current reference state for agents
- Contact centers · Current reference state for contact centers
- Service categories · Current reference state for service categories
- Interactions · Event table carrying support activity
- Unknown fallback · Preserves interactions when a referenced dimension row is deleted
- Monthly report · Groups interactions by month, contact center, and department
Outputs
Final CSV extracts and rendered report
- Final agents · Reconstructed agent table
data/output/final_agents.csv - Final centers · Reconstructed contact center table
data/output/final_contact_centers.csv - Final services · Reconstructed service category table
data/output/final_service_categories.csv - Final interactions · Reconstructed interaction table
data/output/final_interactions.csv - Support report · Business-facing monthly summary
data/output/support_report.csv - PDF report · Knitted presentation copy of the R Markdown report
Oddball-Technical-Assessment-Pipeline---Customer-Support-Report.pdf
Connections 27
- Initial data → Load & wrangle: seed data · Base snapshots initialize the pipeline
- Agents delta → Apply deltas: agents Feb · February agent changes
- Agents delta → Apply deltas: agents Mar · March agent changes
- Centers delta → Apply deltas: centers Mar · March contact center changes
- Services delta → Apply deltas: services Feb · February service category changes
- Services delta → Apply deltas: services Mar · March service category changes
- Interactions delta → Apply deltas: interactions Feb · February interaction changes
- Interactions delta → Apply deltas: interactions Mar · March interaction changes
- R Markdown → Load & wrangle: drives · The R Markdown document orchestrates loading and wrangling
- Load & wrangle → Apply deltas: hands off · Normalized inputs feed chronological reconstruction
- Apply deltas → Time normalize: prepare facts · Interaction timestamps are adjusted before aggregation
- Apply deltas → Agents: build · Produces final agent dimension
- Apply deltas → Contact centers: build · Produces final contact center dimension
- Apply deltas → Service categories: build · Produces final service category dimension
- Apply deltas → Interactions: build · Produces final interaction fact table
- Interactions → Unknown fallback: guard · Missing references are labeled Unknown instead of dropping rows
- Unknown fallback → Monthly report: preserve counts · Keeps fact rows available for reporting
- Time normalize → Monthly report: group by month · Local-time conversion determines monthly buckets
- Contact centers → Monthly report: join dims · Contact center names enrich the report
- Agents → Monthly report: join dims · Agent reference data supports reporting context
- Service categories → Monthly report: join dims · Service category reference data supports reporting context
- Agents → Final agents: write · Final agent extract is written to output
- Contact centers → Final centers: write · Final contact center extract is written to output
- Service categories → Final services: write · Final service category extract is written to output
- Interactions → Final interactions: write · Final interaction extract is written to output
- Monthly report → Support report: write · Monthly aggregate CSV is produced for business use
- R Markdown → PDF report: render · The same document is knitted to PDF