Skip to content

Commit

Permalink
add new load_participation dictionary entries (#233)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Tan Ho <[email protected]>
  • Loading branch information
john-b-edwards and tanho63 authored Dec 19, 2023
1 parent 9c6a865 commit 7dfa7e0
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: nflreadr
Title: Download 'nflverse' Data
Version: 1.4.0.10
Version: 1.4.0.11
Authors@R: c(
person("Tan", "Ho", , "[email protected]", role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0001-8388-5155")),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- Add new function `stat_mode()`, a re-export from nflfastR, which computes the statistical mode of a vector. (#224)
- The function `load_ftn_charting()` now accepts the argument `file_type`. (#228)
- The function `clean_team_abbrs()` now accepts the "team" name "NFL". (#231)
- `load_participation()` now returns additional fields `time_to_throw`, `was_pressure`, `defense_man_zone_type`, and
`defense_coverage_type` (#233, thank you @mistakia @john-b-edwards)

---

Expand Down
35 changes: 20 additions & 15 deletions data-raw/dictionary_participation.csv
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
Field,Type,Description
nflverse_game_id,character,"nflverse identifier for games. Format is season, week, away_team, home_team"
old_game_id,character,Legacy NFL game ID.
play_id,integer,Numeric play id that when used with game_id and drive provides the unique identifier for a single play.
possession_team,character,String abbreviation for the team with possession.
offense_formation,character,Formation the offense lines up in to snap the ball.
offense_personnel,character,"Number of running backs, tight ends, and wide receivers on the field for the play. If there are more than the standard 5 offensive linemen and 1 quarterback, they will be listed here as well."
defenders_in_box,integer,Number of defensive players lined up in the box at the snap.
defense_personnel,character,"Number of defensive linemen, linebackers, and defensive backs on the field for the play. "
number_of_pass_rushers,integer,Number of defensive player who rushed the passer.
players_on_play,character,"A list of every player on the field for the play, by gsis_it_id"
offense_players,character,"A list of every offensive player on the field for the play, by gsis_id"
defense_players,character,"A list of every defensive player on the field for the play, by gsis_id"
n_offense,integer,Number of offensive players on the field for the play
n_defense,integer,Number of defensive players on the field for the play
Field,Type,Description
nflverse_game_id,character,"nflverse identifier for games. Format is season, week, away_team, home_team"
old_game_id,character,Legacy NFL game ID.
play_id,integer,Numeric play id that when used with game_id and drive provides the unique identifier for a single play.
possession_team,character,String abbreviation for the team with possession.
offense_formation,character,Formation the offense lines up in to snap the ball.
offense_personnel,character,"Number of running backs, tight ends, and wide receivers on the field for the play. If there are more than the standard 5 offensive linemen and 1 quarterback, they will be listed here as well."
defenders_in_box,integer,Number of defensive players lined up in the box at the snap.
defense_personnel,character,"Number of defensive linemen, linebackers, and defensive backs on the field for the play. "
number_of_pass_rushers,integer,Number of defensive player who rushed the passer.
players_on_play,character,"A list of every player on the field for the play, by gsis_it_id"
offense_players,character,"A list of every offensive player on the field for the play, by gsis_id"
defense_players,character,"A list of every defensive player on the field for the play, by gsis_id"
n_offense,integer,Number of offensive players on the field for the play
n_defense,integer,Number of defensive players on the field for the play
ngs_air_yards,double,Distance (in yards) that the ball traveled in the air on a given passing play as tracked by NGS
time_to_throw,double,Duration (in seconds) between the time of the ball being snapped and the time of release of a pass attempt
was_pressure,logical,A boolean indicating whether or not the QB was pressured on a play
defense_man_zone_type,character,A string indicating whether the defense was in man or zone coverage on a play
defense_coverage_type,character,A string indicating what type of cover the defense was in on a play
Binary file modified data/dictionary_combine.rda
Binary file not shown.
Binary file modified data/dictionary_contracts.rda
Binary file not shown.
Binary file modified data/dictionary_depth_charts.rda
Binary file not shown.
Binary file modified data/dictionary_draft_picks.rda
Binary file not shown.
Binary file modified data/dictionary_espn_qbr.rda
Binary file not shown.
Binary file modified data/dictionary_ff_opportunity.rda
Binary file not shown.
Binary file modified data/dictionary_ff_playerids.rda
Binary file not shown.
Binary file modified data/dictionary_ff_rankings.rda
Binary file not shown.
Binary file modified data/dictionary_ftn_charting.rda
Binary file not shown.
Binary file modified data/dictionary_injuries.rda
Binary file not shown.
Binary file modified data/dictionary_nextgen_stats.rda
Binary file not shown.
Binary file modified data/dictionary_participation.rda
Binary file not shown.
Binary file modified data/dictionary_pfr_passing.rda
Binary file not shown.
Binary file modified data/dictionary_player_stats.rda
Binary file not shown.
Binary file modified data/dictionary_rosters.rda
Binary file not shown.
Binary file modified data/dictionary_schedules.rda
Binary file not shown.
Binary file modified data/dictionary_snap_counts.rda
Binary file not shown.
Binary file modified data/dictionary_trades.rda
Binary file not shown.

0 comments on commit 7dfa7e0

Please sign in to comment.