Learn R Programming

baseballr (version 1.5.0)

ncaa: NCAA Functions Overview

Description

ncaa_team_player_stats():

This function allows the user to obtain batting or pitching statistics for any school affiliated with the NCAA at the division I, II, or III levels. The function acquires data from the NCAA's website (stats.ncaa.org) and returns a tibble.

ncaa_pbp():

Get Play-By-Play Data for NCAA Baseball Games.

ncaa_roster():

Get NCAA Baseball Rosters.

ncaa_game_logs():

Get NCAA Baseball Game Logs.

ncaa_lineups():

Get NCAA Baseball Game Lineups.

ncaa_park_factor():

Get Park Effects for NCAA Baseball Teams.

ncaa_schedule_info():

Get Schedule and Results for NCAA Baseball Teams.

ncaa_school_id_lu():

Lookup NCAA School IDs (Division I, II, and III)

ncaa_teams():

Lookup NCAA Teams by Division (I, II, and III) and Season

Arguments

Details

Scrape NCAA baseball data (Division I, II, and III)

  ncaa_team_player_stats(team_id = 255, year = 2013, type = "batting")

Get Play-By-Play Data for NCAA Baseball Games

  x <- ncaa_schedule_info(736, 2021)$game_info_url[2]
  ncaa_pbp(game_info_url = x)

Get NCAA Baseball Rosters

  ncaa_roster(team_id = 104, year = 2021)

Get NCAA Baseball Game Logs

  ncaa_game_logs(player_id = 2113782, year = 2021, type = "pitching", span = "game")

Get NCAA Baseball Game Lineups

  ncaa_lineups(game_info_url="https://stats.ncaa.org/game/index/4587474?org_id=528",year=2018)

Get Park Effects for NCAA Baseball Teams

   ncaa_park_factor(team_id = 736, years = c(2017:2019), type = "conference")

Get Schedule and Results for NCAA Baseball Teams

  ncaa_schedule_info(team_id = 736, year = 2021)

Lookup NCAA School IDs (Division I, II, and III)

  ncaa_school_id_lu("VAN")

Scrape NCAA baseball Teams (Division I, II, and III)

  ncaa_teams(year = 2023, division = 1)