nba_endpoints: Convert team name string to team endpoint for ESPN url

View source: R/team_endpoints.R

nba_endpointsR Documentation

Convert team name string to team endpoint for ESPN url

Description

Backend function for converting team name from string to url endpoint.

Usage

nba_endpoints(teamName)

Arguments

teamName

the full team name e.g. "Boston Bruins" etc.

Details

The statistics page url for an individual team on ESPN ends with a three letter string resembling the city or team name of a given team. For example "Arizona Cardinals" has the endpoint "ari". Exceptions include

  • Green Bay Packers is "gb"

  • JacksonVille Jaguars is "jax"

  • Kansas City Chiefs is "kc", etc.

Value

string


shill1729/sportsbets documentation built on Dec. 27, 2022, 10:53 p.m.