View source: R/nba_dictionaries.R
| nba_player_headshot_url | R Documentation |
Build the official NBA CDN headshot URL(s) for one or more player ids. Vectorized – pass a vector of ids to get a vector of URLs.
nba_player_headshot_url(player_id, size = "1040x760")
player_id |
Player id(s) ( |
size |
Image size: |
A character vector of headshot URLs.
Other NBA Dictionary Functions:
nba_player_dict(),
nba_team_dict(),
nba_team_logo_url()
nba_player_headshot_url(player_id = 201939) # Stephen Curry
nba_player_headshot_url(c(2544, 201939), size = "260x190")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.