Learn R Programming

baseballr (version 1.5.0)

ncaa_schedule_info: Get Schedule and Results for NCAA Baseball Teams

Description

Get Schedule and Results for NCAA Baseball Teams

Usage

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

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_nametypes
yearinteger
season_idinteger
datecharacter
home_teamcharacter
home_team_idinteger
home_team_conferencecharacter
home_team_conference_idinteger
home_team_slugcharacter
home_team_divisioninteger
away_teamcharacter
away_team_idinteger
away_team_conferencecharacter
away_team_conference_idinteger
away_team_slugcharacter
away_team_divisioninteger
neutral_sitecharacter
resultcharacter
scorecharacter
inningscharacter
slugcharacter
game_info_urlcharacter
contest_idinteger

Arguments

team_id

The team's unique NCAA id.

year

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

pbp_links

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

...

Additional arguments passed to an underlying function like httr.

Details

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