Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.72 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.72 KB

softballR

softballR is an R package for acquiring NCAA softball data.

The package has functions for obtaining game-by-game scores, box scores, (some) play-by-play, and some different rankings websites.

Installation

You can install the current version (1.4.0) of the package like this:

# install.packages("devtools")
devtools::install_github("tmking2002/softballR")

Important Functions

Get scores for all games in a given season

scoreboard <- softballR::load_ncaa_softball_scoreboard(season = 2023)

Get box scores for all games in a given season (Only has 2023 data for now)

hitting <- softballR::load_ncaa_softball_playerbox(season = 2023, category = "Hitting")

pitching <- softballR::load_ncaa_softball_playerbox(season = 2023, category = "Pitching")

Get all NCAA play by play data for a given team and season (2021-2023 for now)

# Use Oklahoma 2022 as example

team_id <- softballR::ncaa_softball_teams(2022) %>%
    dplyr::filter(team_name == "Oklahoma") %>%
    dplyr::pull(softball_id)
    
pbp <- softballR::ncaa_softball_season_pbp(team_id)

Author

Tyson King
@tking0426 @tmking2002