type_converters: Named type conversion functions

Description Usage Format

Description

List of functions to parse data returned by stats.nba.com into (hopefully) meaningul or intuitive R data types.

Usage

1

Format

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.

date

convert using as.Date()

last_name

extract last name from 'lastname, firstname'

first_name

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


stephematician/statsnbaR documentation built on May 30, 2019, 3:17 p.m.