This repo contains my analysis of Hikaru Nakamura's games with R. The data used is scraped from Chess.com using rvest. The code for the scraper can be seen here.
R Packages:
- core tidyverse packages(dplyr, ggplot2, readr, tidyr, stringr)
- gridExtra
- rvest
Data Source: https://www.chess.com/games/hikaru-nakamura
scraped_data.csv
columns:
- Player 1 (Name and rating of white player)
- Player 2 (Name and rating of black player)
- Result (Game results):
1-0
if white wins0-1
if black wins1/2-1/2
if game is drawn
- Moves (Number of moves in the game)
- Year (The year the game is played)
- Opening (The full name of openings with move notation)
cleaned_data.csv
columns:
- Color (The color of Hikaru's piece)
- Rating (His rating)
- Oppponent (The name of his opponent)
- Opponent_rating (His opponent's rating)
- Result (Game results):
Win
if Hikaru wonLoss
if Hikaru lostDraw
if game is drawn
- Opening (Generalized name of the opening, without variations and notation)
- Moves
- Year
Here are some of my findings after performing the analysis. The full analysis is located here.
Distributed under the MIT License. See LICENSE for more information.