Publications by Ben Scartz

Intl Class Evaluations

20.11.2023

library(httr) library(jsonlite) ## Warning: package 'jsonlite' was built under R version 4.2.3 library(rvest) ## Warning: package 'rvest' was built under R version 4.2.3 library(tidyverse) ## Warning: package 'tidyverse' was built under R version 4.2.3 ## Warning: package 'ggplot2' was built under R version 4.2.3 ## Warning: package 'tibble' was b...

20 sym R (1697 sym/17 pcs)

Matchups

20.11.2023

Data Prep: Statcast data assembled from past work load("G:/My Drive/Baseball/R Projects/Data/Statcast2022.RData") load("G:/My Drive/Baseball/R Projects/Data/Statcast2023.RData") # Use last two seasons statcast <- rbind(Statcast2022, Statcast2023) # Create data for each hitter schwarber_data <- statcast %>% filter(player_name == 'Schwarber...

1376 sym

Extra Bases

09.11.2023

Question: Identify players who are the most aggressive and successful baserunners out of the batters box. library(mgcv) ## Loading required package: nlme ## This is mgcv 1.8-41. For overview type 'help("mgcv-package")'. library(tidyverse) ## ── Attaching core tidyverse packages ─────────────────────�...

1327 sym R (5462 sym/20 pcs)

DET Questionnaire

29.09.2023

Data Prep # load packages and read data library(baseballr) library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.2 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ ti...

1427 sym R (10583 sym/15 pcs) 7 img

Top 5 Pitchers in Baseball

06.09.2023

Question: Who are the five best starting pitchers in Major League Baseball right now (ignore contract status, age, etc)? This project begins with a brief statistical analysis over the last two seasons to pick ten candidates. It then summarizes a video scouting evaluation to determine the final order, which can be found at the bottom of the pag...

4971 sym R (9417 sym/18 pcs)

Pitcher Comps

23.08.2023

Task: Create a system to match pitchers with other pitchers around the league who most closely resemble their arsenals and characteristics. library(baseballr) ## Warning: package 'baseballr' was built under R version 4.2.3 library(tidyverse) ## Warning: package 'tidyverse' was built under R version 4.2.3 ## Warning: package 'ggplot2' was built u...

1680 sym R (22797 sym/28 pcs) 2 img

Statcast

23.08.2023

Task: Create a season’s worth of Statcast data stored as a single table for analysis library(baseballr) # Create Statcast data for an entire season to be used in analysis # Function must be looped by day to handle large payload # Create Original Statcast table Statcast2022 <- statcast_search(start_date = '2022-04-07', ...

94 sym R (1235 sym/1 pcs)

Top 100 Prospects Re-rank

18.08.2023

Task: Re-rank the 2019 Fangraphs Top 100 prospects based on MLB production. Then, evaluate the accuracy of the original rankings. library(baseballr) ## Warning: package 'baseballr' was built under R version 4.2.3 library(tidyverse) ## Warning: package 'tidyverse' was built under R version 4.2.3 ## Warning: package 'ggplot2' was built under R vers...

1760 sym R (9543 sym/41 pcs) 5 img

Lemahieu Fastball Types

18.08.2023

Question What types of RH fastballs are most effective against DJ LeMahieu? library(baseballr) ## Warning: package 'baseballr' was built under R version 4.2.3 library(tidyverse) ## Warning: package 'tidyverse' was built under R version 4.2.3 ## Warning: package 'ggplot2' was built under R version 4.2.3 ## Warning: package 'tibble' was built under ...

682 sym R (9253 sym/24 pcs) 5 img