Description Usage Arguments Details Value See Also
Translates the values in a named list of statsnbaR key-value pairs to values that the stats.nba.com API recognises.
1 | map_filter_values(filters)
|
filters |
The statsnbaR filter key-value pairs |
The mappings for each filter are specified in the internal YAML data which look, for example, like the following:
1 2 3 4 5 6 7 | filters :
league :
mapping : {
NBA : "00",
D-League : "20"
}
default : NBA
|
When we say that only the value is mapped, that means we do not map the key-name ‘league’ to the key-name that stats.nba.com expects. We simply map the value 'NBA' that statsnbaR accepts to the value "00" that the stats.nba.com API expects. Simple, yes?
Named list of key-values with values mapped to stats.nba.com API values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.