The NCAA website uses different "sport id's" for each sport. This function references those baesd on name.

sport_code(sprt)

Arguments

sprt

Tradiational Sport Name

Examples

sport_code("mens basketball")
#> [1] "MBB"
sport_code("MBB")
#> [1] "MBB"
sport_code("Women's Soccer")
#> [1] "WSO"