Skip to contents

This function allows the user to look up the school_id needed for the ncaa_scrape() function.

Usage

ncaa_school_id_lu(school_name = NULL)

Arguments

school_name

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

Value

Returns a tibble with school identification data: school, conference, school_id, year, division, conference_id

col_nametypes
schoolcharacter
conferencecharacter
school_idnumeric
yearnumeric
divisionnumeric
conference_idnumeric

Examples

# \donttest{
  try(ncaa_school_id_lu("Van"))
#> # A tibble: 10 × 6
#>    school     conference school_id  year division conference_id
#>    <chr>      <chr>          <dbl> <dbl>    <dbl>         <dbl>
#>  1 Vanderbilt SEC              736  2013        1           911
#>  2 Vanderbilt SEC              736  2014        1           911
#>  3 Vanderbilt SEC              736  2015        1           911
#>  4 Vanderbilt SEC              736  2016        1           911
#>  5 Vanderbilt SEC              736  2017        1           911
#>  6 Vanderbilt SEC              736  2018        1           911
#>  7 Vanderbilt SEC              736  2019        1           911
#>  8 Vanderbilt SEC              736  2020        1           911
#>  9 Vanderbilt SEC              736  2021        1           911
#> 10 Vanderbilt SEC              736  2022        1           911
# }