Skip to content
sportsdataversePublic

About

Package that scrapes and cleans college softball data from NCAA, ESPN, and a few others.

Resources

Stars

11 stars

Watchers

1 watching

Forks

Repository files navigation

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)

Citation

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.

The SportsDataverse

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.

Author

Tyson King
@tking0426 @tmking2002

About

Package that scrapes and cleans college softball data from NCAA, ESPN, and a few others.

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages