create_pos_team_table: Create non-QB table stats with team information

Description Usage Arguments Value Examples

Description

Create non-QB table stats with team information

Usage

1
create_pos_team_table(model_data_list, position)

Arguments

model_data_list

List of data frames:

  • "pass_model_df" - Passing play-by-play data

  • "rush_model_df" - Rushing play-by-play data

  • "QB_table" - Table of QBs

  • "RB_table" - Table of RBs

  • "WR_table" - Table of WRs

  • "TE_table" - Table of TEs

position

String indicating which position to use, can be either (1) RB/FB, (2) WR, or (3) TE.

Value

A different form of the position tables that are grouped by the player and team level that also includes the player's number and percentage of different attempts with respect to their team.

Examples

1
2
# Create the RB team table:
RB_team_table <- create_pos_team_table(model_data_list, "RB")

ryurko/nflWAR documentation built on May 9, 2019, 7:37 a.m.