List of functions to parse data returned by stats.nba.com into (hopefully) meaningul or intuitive R data types.
1 |
A named list of type-conversion functions. Some of these are standard functions such as as.integer, while others are specified in source code, e.g.
convert using as.Date()
extract last name from 'lastname, firstname'
extract first name from 'lastname, firstname'
convert to data type corresponding to name
The source code can be found at http://www.github.com/stephematicina/statsnbaR/tree/master/R/utils.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.