Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.43 KB

README.md

File metadata and controls

50 lines (38 loc) · 1.43 KB

trackmanbaseballr

The trackmanbaseballr package was created to generate visual and numeric summaries of pitchers in college baseball game data collected and stored by TrackMan Baseball.

This package can be installed by running:

remotes::install_github("DanielErro35/trackmanbaseballr")

Examples

First, load the trackmanbaseballr library:

library(trackmanbaseballr)

Read in a trackman baseball dataset:

poly_utah_game <- read.csv(here::here("5-10-24_CalPoly_UtahTech.csv"))

Let's see what the first few rows and columns should look like:

head(poly_utah_game)

Generate numeric summaries of a baseball game for a specified pitcher

pitcher_summary(data = poly_utah_game, pitcherid = 1000114562)

Generate a movement chart for a specified pitcher to show horizontal and induced vertical breaks of each pitch

pitcher_chart(data = poly_utah_game,
              pitcherid = 1000114562,
              type = "movement")

Generate numeric summaries of box scores for a specified pitcher

pitcher_box_score(data = poly_utah_game,
                  pitcherid = 1000114562)