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.
You can install the current version (1.4.0) of the package like this:
# install.packages("devtools")
devtools::install_github("tmking2002/softballR")scoreboard <- softballR::load_ncaa_softball_scoreboard(season = 2023)hitting <- softballR::load_ncaa_softball_playerbox(season = 2023, category = "Hitting")
pitching <- softballR::load_ncaa_softball_playerbox(season = 2023, category = "Pitching")# 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)To cite the softballR R package in publications, use:
@misc{king_softballR,
author = {Tyson King},
title = {softballR: Easily Accessible College Softball Data.},
url = {https://github.com/sportsdataverse/softballR},
year = {2023}
}citation("softballR") returns this entry with the installed version number attached.
softballR is part of the SportsDataverse.
Its sibling packages publish free printable one-page cheat sheets at
sportsdataverse.org/cheatsheets —
there is no softballR sheet yet, but the same template is available if you
would like one built.
