procycling stats scraping for analyzing Japan Cup 2014 & 2013
✓ Published0🌍 Public
RRytNszn
Last edited Oct 20, 2014
Created on Oct 20, 2014
This example compares the distribution of rider points from the 2013 and 2014 Japan Cup races. It first scrapes startlists from procyclingstats.com using `rvest`, `magrittr`, and `XML`, extracting rider links via XPath and then fetching each rider’s points from a detail page. The scraped data is stored as CSV files, read with `read.csv`, labeled with a `year` column, and combined before being visualized with a dodged histogram using `ggplot2`’s `qplot`. The result shows point distributions for both years side by side, highlighting differences in scoring patterns.
AI-generated description