Skip to contents

To be used on the output of nba_shots() or nba_shots_league_avg() within the nba_shot_chart() function. Processes shot and league average data within each NBA season. Applies transformations to prepare the data for analysis and visualization.

Usage

process_shots(data)

Arguments

data

A named list or data frame with shots or league average data.

Value

A named list or data frame, whichever was provided as input.