Description Usage Arguments Value Examples
Adds Player Positions to Play-by-Play Data
1 | add_positions(pbp_df, years)
|
pbp_df |
Play-by-play data frame. |
years |
Single number or vector of years to get team rosters for. |
Play-by-play data frame with the following columns added:
"Passer_ID_Name" - Name and ID of the passer
"Receiver_ID_Name" - Name and ID of the receiver
"Rusher_ID_Name" - Name and ID of the rusher
"Passer_Position" - Position of the passer
"Receiver_Position" - Position of the receiver
"Rusher_Position" - Position of the rusher
1 2 | # Add positions for data from 2009 to 2016:
pbp_df <- pbp_df %>% add_positions(c(2009:2016))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.