Skip to contents

A player's full profile collapsed to one self-describing tibble (tactic D). nba_playerprofilev2() returns many heterogeneous, PLAYER_ID-keyed sets (season totals, career totals, season/career highs, rankings, next game); this nests each populated set into a .data list-column, one row per (set_name, PLAYER_ID). Recover a table with tidyr::unnest().

Usage

nba_tidy_player_profile(player_id, ...)

Arguments

player_id

Player ID (e.g. 201939).

...

Additional arguments passed to nba_playerprofilev2().

Value

A hoopR_data tibble with set_name, PLAYER_ID and a .data list-column.

See also

Examples

if (FALSE) { # interactive()
# \donttest{
  prof <- try(nba_tidy_player_profile(player_id = 201939))
# }
}