RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post

Recently Published

Simple Linear Regression: Stopping Distance vs Speed
Homework 3 presentation for DAT 301 (Simple Linear Regression on cars dataset)
Study Area
Testing
Curso R - 2025
OSR Study area
Testing
Assignment 2 BAIS329
2010s World Bank Debt Analysis
I used World Bank data to see which countries contributed most to global external debt in the 2010s. The raw file was messy, so I cleaned it: standardized column names, reshaped years into a tidy format, removed non-country aggregates, and handled missing values. I then summarized totals with dplyr, plotted the top contributors with ggplot2, and printed two short takeaways. For NYU Stern's MSQM 2025
An Introduction
A basic introduction of myself.
Document
Academic profiles of candidates: from bachelor’s GPA to admission results
The purpose of this analysis is to examine candidates’ academic performance in order to identify patterns, compare results across faculties, and highlight the factors that could influence competitiveness in ASE master’s programs.
Data Analysis: Converting .txt to .csv
Chess Tournament Data Analysis Project This project converts unstructured chess tournament data from a fixed-width, pipe-delimited text file containing 64 players into a clean, analyzable CSV dataset through systematic parsing and data extraction. The raw data presents multiple challenges including player information spanning two lines, inconsistent spacing, embedded separators, and mixed alphanumeric content requiring careful line-by-line processing using R's string manipulation functions and regular expressions. Key extracted fields include player identification (name, state, USCF ID), rating information (pre- and post-tournament ratings), tournament performance (total points, round-by-round results, opponent numbers, colors played), and calculated metrics such as average opponent rating for strength-of-schedule analysis. The technical approach employs R programming with core libraries including `stringr` for text processing, `dplyr` for data manipulation, and `readr` for file I/O operations, implementing robust data cleaning to remove separator lines and headers, type conversion from text to numeric values, cross-referencing to match opponent numbers, and quality validation to check for missing values and data consistency. Project deliverables include a structured CSV file with complete player and tournament data, a comprehensive HTML report documenting the conversion process using R Markdown for reproducible analysis, data quality assessments highlighting limitations, and summary statistics with interactive data tables using the DT package, ultimately transforming complex human-readable tournament records into machine-readable format suitable for statistical analysis, database storage, or integration with tournament management systems.
Anthony Tranchina - Global Poverty Trends
Analysis of World Bank data on global poverty rates and regional differences from 1980 to 2020.