Skip to contents

Get Schedule and Results for NCAA Baseball Teams

Usage

ncaa_schedule_info(team_id = NULL, year = NULL, pbp_links = FALSE, ...)

Arguments

team_id

The team's unique NCAA id.

year

The season (i.e. use 2016 for the 2015-2016 season, etc.)

Logical parameter to run process for scraping play_by_play urls for each game

...

Additional arguments passed to an underlying function like httr.

Value

A data frame with the following fields: date, opponent, result, score, innings (if more than regulation), and the url for the game itself.

col_nametypesdescription
yearintegerSeason (4-digit year).
season_idintegerstats.ncaa.org season identifier.
datecharacterGame date.
home_teamcharacterHome team name.
home_team_idintegerHome team NCAA id.
home_team_conferencecharacterHome team conference name.
home_team_conference_idintegerHome team conference id.
home_team_slugcharacterRelative stats.ncaa.org url for the home team.
home_team_divisionintegerHome team NCAA division (1, 2, 3).
away_teamcharacterAway team name.
away_team_idintegerAway team NCAA id.
away_team_conferencecharacterAway team conference name.
away_team_conference_idintegerAway team conference id.
away_team_slugcharacterRelative stats.ncaa.org url for the away team.
away_team_divisionintegerAway team NCAA division (1, 2, 3).
neutral_sitecharacterNeutral-site venue (when not hosted by either team).
resultcharacterWin/loss/tie result for team_id.
scorecharacterFinal score (e.g. "7-3").
inningscharacterInnings played when other than regulation (extras).
slugcharacterRelative stats.ncaa.org url for the game.
game_info_urlcharacterFull stats.ncaa.org box-score url for the game.
contest_idintegerstats.ncaa.org contest (game) identifier.

Details

 try(ncaa_schedule_info(team_id = 736, year = 2019))