Learn R Programming

baseballr (version 1.5.0)

ncaa_roster: Get NCAA Baseball Rosters

Description

Get NCAA Baseball Rosters

Usage

ncaa_roster(team_id = NULL, year, ...)

Value

A data frame containing roster information, including IDs and urls for each player (if available)

col_nametypes
player_namecharacter
classcharacter
player_idcharacter
seasonnumeric
numbercharacter
positioncharacter
player_urlcharacter
team_namecharacter
conferencecharacter
team_idnumeric
divisionnumeric
conference_idnumeric

Arguments

team_id

NCAA id for a school

year

The year of interest

...

Additional arguments passed to an underlying function like httr.

Examples

Run this code
# \donttest{
  try(ncaa_roster(team_id = 104, year = 2021))
# }

Run the code above in your browser using DataLab