Skip to contents

This function allows the user to look up the team_id needed for the ncaa_team_player_stats() function.

Usage

ncaa_school_id_lu(team_name = NULL)

Arguments

team_name

A string that will be searched for in the names of the teams.

Value

Returns a tibble with school identification data: team_id, team_name, team_url, conference, conference_id, division, year, and season_id

col_nametypes
team_idnumeric
team_namecharacter
team_urlcharacter
conference_idnumeric
conferencecharacter
divisionnumeric
yearnumeric
season_idnumeric

Examples

# \donttest{
  try(ncaa_school_id_lu("Van"))
#> ── NCAA Baseball Teams Information from baseballr data repository ──────
#>  Data updated: 2024-01-09 04:44:08 UTC
#> # A tibble: 16 × 8
#>    team_id team_name    team_url conference_id conference division  year
#>      <dbl> <chr>        <chr>            <dbl> <chr>         <dbl> <dbl>
#>  1     736 "Vanderbilt" /team/7…           911 SEC               1  2024
#>  2     736 "Vanderbilt" /team/7…           911 SEC               1  2023
#>  3     736 "Vanderbilt" /team/7…           911 SEC               1  2022
#>  4     736 "Vanderbilt" /team/7…           911 SEC               1  2021
#>  5     736 "Vanderbilt" /team/7…           911 SEC               1  2020
#>  6     736 "Vanderbilt" /team/7…           911 SEC               1  2019
#>  7     736 "Vanderbilt" /team/7…           911 SEC               1  2018
#>  8     736 "Vanderbilt" /team/7…           911 SEC               1  2017
#>  9     736 "Vanderbilt" /team/7…           911 SEC               1  2016
#> 10     736 "Vanderbilt" /team/7…           911 SEC               1  2015
#> 11     736 "Vanderbilt" /team/7…           911 SEC               1  2014
#> 12     736 "Vanderbilt" /team/7…           911 SEC               1  2013
#> 13     736 "Vanderbilt" /team/7…           911 SEC               1  2012
#> 14     736 "Vanderbilt" /team/7…           911 SEC               1  2011
#> 15     736 "Vanderbilt" /team/7…           911 SEC               1  2010
#> 16   30263 "Vanguard "  /team/3…         99010 DII Indep…        2  2024
#> # ℹ 1 more variable: season_id <dbl>
# }