Description Usage Arguments Details Value See Also
Convert all columns of a data.frame using the specified mapping and type conversion function as per the internal YAML data.
1 |
df |
The flattened JSON data.)frame from stats.nba.com with statsnbaR attribute names. |
The YAML specification of the data type might look as follows:
1 2 3 4 5 6 7 |
Now any column named ‘played’ would be mapped from the character values to a logical TRUE or FALSE, and converted to the logical class (a redundant step for this example).
Data.frame of converted and mapped data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.