-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added playerstats_def dictionary (#192)
* Added playerstats_def dictionary * version and news bullet * export dictionary and redocument * add vignette * avoid cross ref warning --------- Co-authored-by: Sebastian Carl <[email protected]>
- Loading branch information
Showing
9 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: nflreadr | ||
Title: Download 'nflverse' Data | ||
Version: 1.3.2.05 | ||
Version: 1.3.2.06 | ||
Authors@R: c( | ||
person("Tan", "Ho", , "[email protected]", role = c("aut", "cre", "cph"), | ||
comment = c(ORCID = "0000-0001-8388-5155")), | ||
|
@@ -48,4 +48,4 @@ Config/testthat/edition: 3 | |
Encoding: UTF-8 | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.2.1 | ||
RoxygenNote: 7.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
field,data_type,description | ||
def_tackles,numeric,Total number of tackles for this player | ||
def_tackles_solo,numeric,Total number of solo tackles for this player | ||
def_tackles_with_assist,numeric,Number of tackles this player had with an assisted tackle | ||
def_tackle_assists,numeric,Number of assisted tackles for this player | ||
def_tackles_for_loss,numeric,Number of tackles for loss (TFL) for this player | ||
def_tackles_for_loss_yards,numeric,Yards lost from TFLs involving this player | ||
def_fumbles_forced,numeric,Number of times a fumble was forced from this player | ||
def_sacks,numeric,Number of sacks form this player | ||
def_sack_yards,numeric,Yards lost from sacks forced by this player | ||
def_qb_hits,numeric,Number of QB hits from this player (should not include plays where the QB was sacked) | ||
def_interceptions,numeric,Number of interceptions forced by this player | ||
def_interception_yards,numeric,yards gained/lost by interception returns from this player | ||
def_pass_defended,numeric,Number of passes defended/broken up by this player | ||
def_tds,numeric,Number of defensive touchdowns scored by this player | ||
def_fumbles,numeric,Number of fumbles by this player | ||
def_fumble_recovery_own,numeric,Number of times a player's team fumbled the ball and this player recovered | ||
def_fumble_recovery_yards_own,numeric,Number of yards gained/lost from fumble recoveries that happened because the player's team fumbled the ball and this player recovered the fumble on that same play | ||
def_fumble_recovery_opp,numeric,Number of times a player's opponent fumbled the ball and this player recovered | ||
def_fumble_recovery_yards_opp,numeric,Number of yards gained/lost from fumble recoveries that happened because the player's opponent fumbled the ball and this player recovered the fumble on that same play | ||
def_safety,numeric,Number of times this player forced a defensive safety | ||
def_penalty,numeric,Number of times this player was penalized defensively | ||
def_penalty_yards,numeric,Number of penalty yards for this player defensively |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "Data Dictionary - Player Stats Defense" | ||
output: rmarkdown::html_vignette | ||
vignette: > | ||
%\VignetteIndexEntry{Data Dictionary - Player Stats Defense} | ||
%\VignetteEngine{knitr::rmarkdown} | ||
%\VignetteEncoding{UTF-8} | ||
--- | ||
```{r, include = FALSE} | ||
knitr::opts_chunk$set( | ||
collapse = TRUE, | ||
echo = FALSE, | ||
comment = "#>" | ||
) | ||
use_dt <- FALSE | ||
if(requireNamespace("DT", quietly = TRUE)) use_dt <- TRUE | ||
``` | ||
|
||
```{r eval = use_dt} | ||
DT::datatable(nflreadr::dictionary_player_stats_def, | ||
options = list(scrollX = TRUE, pageLength = 25), | ||
filter = "top", | ||
rownames = FALSE | ||
) | ||
``` | ||
|
||
```{r eval = !use_dt} | ||
knitr::kable(nflreadr::dictionary_player_stats_def) | ||
``` |