From 371e6f6d50565f741314e47062513f0316499d13 Mon Sep 17 00:00:00 2001 From: tanho63 <38083823+tanho63@users.noreply.github.com> Date: Mon, 7 Aug 2023 13:19:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20nflverse?= =?UTF-8?q?/nflreadr@f68c359af0865dc737b68f96773831fe65466153=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- articles/dictionary_espn_qbr.html | 4 ++-- articles/dictionary_ff_opportunity.html | 4 ++-- articles/dictionary_pbp.html | 4 ++-- articles/dictionary_player_stats.html | 4 ++-- articles/dictionary_player_stats_def.html | 4 ++-- articles/dictionary_rosters.html | 4 ++-- articles/dictionary_schedules.html | 4 ++-- pkgdown.yml | 2 +- reference/load_espn_qbr.html | 2 +- reference/load_ff_playerids.html | 2 +- reference/load_ff_rankings.html | 2 +- reference/load_from_url.html | 2 +- reference/load_schedules.html | 2 +- reference/load_teams.html | 2 +- reference/load_trades.html | 2 +- reference/progressively.html | 6 +++--- search.json | 2 +- 17 files changed, 26 insertions(+), 26 deletions(-) diff --git a/articles/dictionary_espn_qbr.html b/articles/dictionary_espn_qbr.html index 9c0d9a2f..cca1e4e9 100644 --- a/articles/dictionary_espn_qbr.html +++ b/articles/dictionary_espn_qbr.html @@ -138,8 +138,8 @@
# \donttest{
load_espn_qbr("nfl",2020)
#> ── nflverse QBR (via ESPN/espnscrapeR) ─────────────────────────────────────────
-#> ℹ Data updated: 2023-08-07 12:09:44 UTC
+#> ℹ Data updated: 2023-08-07 13:18:10 UTC
#> # A tibble: 84 × 23
#> season season_type game_week team_abb player_id name_short rank qbr_total
#> <dbl> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl>
diff --git a/reference/load_ff_playerids.html b/reference/load_ff_playerids.html
index 6f9a3aa9..3c25b75f 100644
--- a/reference/load_ff_playerids.html
+++ b/reference/load_ff_playerids.html
@@ -120,7 +120,7 @@ Examplesload_ff_playerids()
})
#> ── nflverse (ffverse) player IDs ───────────────────────────────────────────────
-#> ℹ Data updated: 2023-08-07 12:09:48 UTC
+#> ℹ Data updated: 2023-08-07 13:18:14 UTC
#> # A tibble: 11,310 × 35
#> mfl_id sportradar_id fantasypros_id gsis_id pff_id sleeper_id nfl_id espn_id
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
diff --git a/reference/load_ff_rankings.html b/reference/load_ff_rankings.html
index f2b81104..322084f6 100644
--- a/reference/load_ff_rankings.html
+++ b/reference/load_ff_rankings.html
@@ -127,7 +127,7 @@ Examplesload_ff_rankings()
})
#> ── nflverse FP expert rankings ─────────────────────────────────────────────────
-#> ℹ Data updated: 2023-08-07 12:09:49 UTC
+#> ℹ Data updated: 2023-08-07 13:18:15 UTC
#> # A tibble: 6,493 × 25
#> fp_page page_type ecr_type player id pos team ecr sd best worst
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl>
diff --git a/reference/load_from_url.html b/reference/load_from_url.html
index a7478380..6b1bd925 100644
--- a/reference/load_from_url.html
+++ b/reference/load_from_url.html
@@ -137,7 +137,7 @@ Examples load_from_url(urls, nflverse = TRUE, nflverse_type = "rosters for 2020 & 2021")
})
#> ── nflverse rosters for 2020 & 2021 ────────────────────────────────────────────
-#> ℹ Data updated: 2023-08-07 12:09:50 UTC
+#> ℹ Data updated: 2023-08-07 13:18:16 UTC
#> # A tibble: 5,379 × 36
#> season team position depth_chart_position jersey_number status full_name
#> <int> <chr> <chr> <chr> <int> <chr> <chr>
diff --git a/reference/load_schedules.html b/reference/load_schedules.html
index 72e5c1f9..be989bf9 100644
--- a/reference/load_schedules.html
+++ b/reference/load_schedules.html
@@ -127,7 +127,7 @@ Examples load_schedules(2020)
})
#> ── nflverse games and schedules ────────────────────────────────────────────────
-#> ℹ Data updated: 2023-08-07 12:10:13 UTC
+#> ℹ Data updated: 2023-08-07 13:18:42 UTC
#> # A tibble: 269 × 45
#> game_id season game_type week gameday weekday gametime away_team away_score
#> <chr> <int> <chr> <int> <chr> <chr> <chr> <chr> <int>
diff --git a/reference/load_teams.html b/reference/load_teams.html
index 7948d545..bb3425c5 100644
--- a/reference/load_teams.html
+++ b/reference/load_teams.html
@@ -126,7 +126,7 @@ Examples load_teams()
})
#> ── nflverse team graphics ──────────────────────────────────────────────────────
-#> ℹ Data updated: 2023-08-07 12:10:15 UTC
+#> ℹ Data updated: 2023-08-07 13:18:44 UTC
#> # A tibble: 32 × 16
#> team_abbr team_name team_id team_nick team_conf team_division team_color
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
diff --git a/reference/load_trades.html b/reference/load_trades.html
index 64a5aaa4..e9854578 100644
--- a/reference/load_trades.html
+++ b/reference/load_trades.html
@@ -125,7 +125,7 @@ Examples# \donttest{
load_trades(2020)
#> ── nflverse trades (via PFR / Lee Sharpe) ──────────────────────────────────────
-#> ℹ Data updated: 2023-08-07 12:10:16 UTC
+#> ℹ Data updated: 2023-08-07 13:18:45 UTC
#> # A tibble: 211 × 11
#> trade_id season trade_date gave received pick_season pick_round pick_number
#> <dbl> <dbl> <date> <chr> <chr> <dbl> <dbl> <dbl>
diff --git a/reference/progressively.html b/reference/progressively.html
index 1802da17..4e5a97a6 100644
--- a/reference/progressively.html
+++ b/reference/progressively.html
@@ -147,13 +147,13 @@ Examples
})
#> ℹ Loading...
-#> ✔ Loading... [10ms]
+#> ✔ Loading... [14ms]
#>
#> ℹ Loading...
-#> ✔ Loading... [8ms]
+#> ✔ Loading... [10ms]
#>
#> ℹ Loading...
-#> ✔ Loading... [8ms]
+#> ✔ Loading... [9ms]
#>
#> Error in read_rosters() : argument "urls" is missing, with no default
# }
diff --git a/search.json b/search.json
index f7cb2709..c1819e22 100644
--- a/search.json
+++ b/search.json
@@ -1 +1 @@
-[{"path":[]},{"path":"https://nflreadr.nflverse.com/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"interest fostering open welcoming environment, contributors maintainers pledge making participation project community harassment-free experience everyone, regardless age, body size, disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, religion, sexual identity orientation.","code":""},{"path":"https://nflreadr.nflverse.com/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes creating positive environment include: Using welcoming inclusive language respectful differing viewpoints experiences Gracefully accepting constructive criticism Focusing best community Showing empathy towards community members Examples unacceptable behavior participants include: use sexualized language imagery unwelcome sexual attention advances Trolling, insulting/derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical electronic address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://nflreadr.nflverse.com/CODE_OF_CONDUCT.html","id":"our-responsibilities","dir":"","previous_headings":"","what":"Our Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Project maintainers responsible clarifying standards acceptable behavior expected take appropriate fair corrective action response instances unacceptable behavior. Project maintainers right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, ban temporarily permanently contributor behaviors deem inappropriate, threatening, offensive, harmful.","code":""},{"path":"https://nflreadr.nflverse.com/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within project spaces public spaces individual representing project community. Examples representing project community include using official project e-mail address, posting via official social media account, acting appointed representative online offline event. Representation project may defined clarified project maintainers.","code":""},{"path":"https://nflreadr.nflverse.com/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported contacting project team hello@dynastyprocess.com. complaints reviewed investigated result response deemed necessary appropriate circumstances. project team obligated maintain confidentiality regard reporter incident. details specific enforcement policies may posted separately. Project maintainers follow enforce Code Conduct good faith may face temporary permanent repercussions determined members project’s leadership.","code":""},{"path":"https://nflreadr.nflverse.com/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 1.4, available https://www.contributor-covenant.org/version/1/4/code--conduct.html answers common questions code conduct, see https://www.contributor-covenant.org/faq","code":""},{"path":"https://nflreadr.nflverse.com/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contributing","title":"Contributing","text":"Many hands make light work! ways can contribute project:","code":""},{"path":"https://nflreadr.nflverse.com/CONTRIBUTING.html","id":"open-an-issue","dir":"","previous_headings":"","what":"Open an issue","title":"Contributing","text":"can open issue ’d like request specific function report bug/error.","code":""},{"path":"https://nflreadr.nflverse.com/CONTRIBUTING.html","id":"fixing-typos","dir":"","previous_headings":"","what":"Fixing typos","title":"Contributing","text":"can fix typos, spelling mistakes, grammatical errors documentation directly using GitHub web interface, long changes made source file. generally means ’ll need edit roxygen2 comments .R, .Rd file. can find .R file generates .Rd reading comment first line.","code":""},{"path":"https://nflreadr.nflverse.com/CONTRIBUTING.html","id":"bigger-changes","dir":"","previous_headings":"","what":"Bigger changes","title":"Contributing","text":"want make bigger change, ’s good idea first file issue make sure someone team agrees ’s needed. ’ve found bug, please file issue illustrates bug minimal reprex (also help write unit test, needed). can also bring changes nflverse discord team happy discuss!","code":""},{"path":"https://nflreadr.nflverse.com/CONTRIBUTING.html","id":"code-style","dir":"","previous_headings":"","what":"Code style","title":"Contributing","text":"New code follow tidyverse style guide. can use styler package apply styles, please don’t restyle code nothing PR. use roxygen2, Markdown syntax, documentation. use testthat unit tests. Contributions test cases included easier accept.","code":""},{"path":"https://nflreadr.nflverse.com/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contributing","text":"Please note usethis project released Contributor Code Conduct. contributing project agree abide terms. contribution guidelines inspired guidelines {usethis}","code":""},{"path":"https://nflreadr.nflverse.com/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2021 nflreadr authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://nflreadr.nflverse.com/articles/exporting_nflreadr.html","id":"re-exporting-nflreadr-functions","dir":"Articles","previous_headings":"","what":"Re-exporting nflreadr functions","title":"Using nflreadr in packages","text":"can re-export nflreadr functions package using following roxygen template:","code":"#' @inherit nflreadr::load_nextgen_stats #' @export # Need to add own examples if the function name is different #' @examples #' load_ng_stats(2020) load_ng_stats <- nflreadr::load_nextgen_stats"},{"path":"https://nflreadr.nflverse.com/articles/exporting_nflreadr.html","id":"using-progressr-with-from_url-functions","dir":"Articles","previous_headings":"","what":"Using progressr with from_url functions","title":"Using nflreadr in packages","text":"from_url family functions can adapted progressively() function decorator signal progress. ’s example, adapted load_rosters() source code: cause p() execute rds_from_url call, effectively “signalling” progress. order receive progress updates, user must wrap function (load_rosters, case) progressr::with_progress() shown : information, please see progressr documentation.","code":"load_rosters <- function(seasons = 1999:2020){ # Create a progressor function inside your function that knows how many \"steps\" there will be p <- progressr::progressor(steps = length(seasons)) # Form the URLs to pass into rds_from_url urls <- paste0( \"https://github.com/nflverse/nflverse-rosters/\", \"raw/master/data/seasons/roster_\", seasons, \".rds\") # Use `progressively()` to wrap the existing function rds_from_url and # call the `p()` progressor function as a signal immediately after each iteration out <- purrr::map_dfr(urls, progressively(rds_from_url,p)) return(out) } progressr::with_progress(load_rosters(2010:2020))"},{"path":"https://nflreadr.nflverse.com/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Tan Ho. Author, maintainer, copyright holder. Sebastian Carl. Author. John Edwards. Contributor. Ben Baldwin. Contributor. Thomas Mock. Contributor. Lee Sharpe. Contributor. Pranav Rajaram. Contributor.","code":""},{"path":"https://nflreadr.nflverse.com/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Ho T, Carl S (2023). nflreadr: Download 'nflverse' Data. https://nflreadr.nflverse.com, https://github.com/nflverse/nflreadr.","code":"@Manual{, title = {nflreadr: Download 'nflverse' Data}, author = {Tan Ho and Sebastian Carl}, year = {2023}, note = {https://nflreadr.nflverse.com, https://github.com/nflverse/nflreadr}, }"},{"path":"https://nflreadr.nflverse.com/index.html","id":"nflreadr-","dir":"","previous_headings":"","what":"nflreadr • Download nflverse Data","title":"nflreadr • Download nflverse Data","text":"nflreadr minimal package downloading data nflverse repositories. includes caching, optional progress updates, data dictionaries. Please note nflverse data repositories reorganized pushed towards nflverse-data repo, v1.2.0+ minimum version supports change. encourage users upgrade version immediately. Python access nflverse data, please check nfl-data-py - maintained Cooper Adams.","code":""},{"path":"https://nflreadr.nflverse.com/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"nflreadr • Download nflverse Data","text":"Install stable version CRAN : Install development version GitHub :","code":"install.packages(\"nflreadr\") install.packages(\"nflreadr\", repos = c(\"https://nflverse.r-universe.dev\", getOption(\"repos\"))) # or use remotes/devtools # install.packages(\"remotes\") remotes::install_github(\"nflverse/nflreadr\")"},{"path":"https://nflreadr.nflverse.com/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"nflreadr • Download nflverse Data","text":"main functions nflreadr prefixed load_.","code":"library(nflreadr) load_pbp(2021) #> ── nflverse play by play data ────────────────────────────────────────────────── #> ℹ Data updated: 2022-09-27 07:35:02 EDT #> # A tibble: 50,712 × 372 #> play_id game_id old_g…¹ home_…² away_…³ seaso…⁴ week posteam poste…⁵ defteam #> #> 1 1 2021_0… 202109… TEN ARI REG 1 #> 2 40 2021_0… 202109… TEN ARI REG 1 TEN home ARI #> 3 55 2021_0… 202109… TEN ARI REG 1 TEN home ARI #> 4 76 2021_0… 202109… TEN ARI REG 1 TEN home ARI #> 5 100 2021_0… 202109… TEN ARI REG 1 TEN home ARI #> 6 122 2021_0… 202109… TEN ARI REG 1 TEN home ARI #> 7 152 2021_0… 202109… TEN ARI REG 1 ARI away TEN #> 8 181 2021_0… 202109… TEN ARI REG 1 ARI away TEN #> 9 218 2021_0… 202109… TEN ARI REG 1 ARI away TEN #> 10 253 2021_0… 202109… TEN ARI REG 1 ARI away TEN #> # … with 50,702 more rows, 362 more variables: side_of_field , #> # yardline_100 , game_date , quarter_seconds_remaining , #> # half_seconds_remaining , game_seconds_remaining , #> # game_half , quarter_end , drive , sp , …, and #> # abbreviated variable names ¹old_game_id, ²home_team, ³away_team, #> # ⁴season_type, ⁵posteam_type #> # ℹ Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names load_player_stats(2021) #> ── nflverse player stats: offense ────────────────────────────────────────────── #> ℹ Data updated: 2023-01-05 04:08:21 EST #> # A tibble: 5,698 × 52 #> player…¹ playe…² playe…³ posit…⁴ posit…⁵ heads…⁶ recen…⁷ season week seaso…⁸ #> #> 1 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 1 REG #> 2 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 2 REG #> 3 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 3 REG #> 4 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 4 REG #> 5 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 5 REG #> 6 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 6 REG #> 7 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 7 REG #> 8 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 8 REG #> 9 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 10 REG #> 10 00-0019… T.Brady Tom Br… QB QB https:… TB 2021 11 REG #> # … with 5,688 more rows, 42 more variables: completions , attempts , #> # passing_yards , passing_tds , interceptions , sacks , #> # sack_yards , sack_fumbles , sack_fumbles_lost , #> # passing_air_yards , …, and abbreviated variable names ¹player_id, #> # ²player_name, ³player_display_name, ⁴position, ⁵position_group, #> # ⁶headshot_url, ⁷recent_team, ⁸season_type #> # ℹ Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names"},{"path":"https://nflreadr.nflverse.com/index.html","id":"data-sources","dir":"","previous_headings":"","what":"Data Sources","title":"nflreadr • Download nflverse Data","text":"Data accessed package stored GitHub can typically found one following repositories: nflverse/nflverse-data nflverse/nfldata nflverse/espnscrapeR-data dynastyprocess/data ffverse/ffopportunity full list functions, please see reference page. data maintained nflverse project team primarily automated via GitHub Actions. can check status schedules page : https://github.com/nflverse/nflverse-data","code":""},{"path":"https://nflreadr.nflverse.com/index.html","id":"configuration","dir":"","previous_headings":"","what":"Configuration","title":"nflreadr • Download nflverse Data","text":"following options help configure default nflreadr behaviours. can also configure nflreadr display progress messages progressr package, e.g.","code":"options(nflreadr.verbose) # TRUE/FALSE to silence messages such as cache warnings options(nflreadr.cache) # one of \"memory\", \"filesystem\", or \"off\" options(nflreadr.prefer) # one of \"qs\", \"rds\", \"parquet\", or \"csv\" options(nflreadr.download_path) # defaults to current working directory - change to specify where `nflverse_download()` places data. progressr::with_progress(load_rosters(seasons = 2010:2020)) |======== | 40%"},{"path":"https://nflreadr.nflverse.com/index.html","id":"getting-help","dir":"","previous_headings":"","what":"Getting help","title":"nflreadr • Download nflverse Data","text":"best places get help package : nflverse discord (package well anything R/NFL related) opening issue","code":""},{"path":"https://nflreadr.nflverse.com/index.html","id":"contributing","dir":"","previous_headings":"","what":"Contributing","title":"nflreadr • Download nflverse Data","text":"Many hands make light work! ways can contribute project: can open issue ’d like request specific data report bug/error. ’d like contribute code, please check contribution guidelines.","code":""},{"path":"https://nflreadr.nflverse.com/index.html","id":"terms-of-use","dir":"","previous_headings":"","what":"Terms of Use","title":"nflreadr • Download nflverse Data","text":"R code package released open source MIT License. NFL data accessed package belong respective owners, governed terms use.","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_homeaway.html","id":null,"dir":"Reference","previous_headings":"","what":"Clean Home/Away in dataframes into Team/Opponent dataframes — clean_homeaway","title":"Clean Home/Away in dataframes into Team/Opponent dataframes — clean_homeaway","text":"function converts dataframes \"home_\" \"away_\" prefixed columns \"team_\" \"opponent_\", doubles rows. makes sure one row team (opposed one row game).","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_homeaway.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Clean Home/Away in dataframes into Team/Opponent dataframes — clean_homeaway","text":"","code":"clean_homeaway(dataframe, invert = NULL)"},{"path":"https://nflreadr.nflverse.com/reference/clean_homeaway.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Clean Home/Away in dataframes into Team/Opponent dataframes — clean_homeaway","text":"dataframe dataframe invert character vector columns gets inverted referring away team (e.g. home spread = 1 gets converted away_spread = -1)","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_homeaway.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Clean Home/Away in dataframes into Team/Opponent dataframes — clean_homeaway","text":"dataframe one row per team (twice long input dataframe)","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_homeaway.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Clean Home/Away in dataframes into Team/Opponent dataframes — clean_homeaway","text":"","code":"# \\donttest{ # a small example dataframe s <- data.frame( game_id = c(\"2020_20_TB_GB\", \"2020_20_BUF_KC\", \"2020_21_KC_TB\"), game_type = c(\"CON\", \"CON\", \"SB\"), away_team = c(\"TB\", \"BUF\", \"KC\"), away_score = c(31L, 24L, 9L), home_team = c(\"GB\", \"KC\", \"TB\"), home_score = c(26L, 38L, 31L), location = c(\"Home\", \"Home\", \"Neutral\"), result = c(-5L, 14L, 22L), spread_line = c(3, 3, -3) ) clean_homeaway(s, invert = c(\"result\",\"spread_line\")) #> game_id game_type opponent opponent_score team team_score location #> 1 2020_20_TB_GB CON TB 31 GB 26 home #> 2 2020_20_TB_GB CON GB 26 TB 31 away #> 3 2020_20_BUF_KC CON BUF 24 KC 38 home #> 4 2020_20_BUF_KC CON KC 38 BUF 24 away #> 5 2020_21_KC_TB SB KC 9 TB 31 neutral #> 6 2020_21_KC_TB SB TB 31 KC 9 neutral #> result spread_line #> 1 -5 3 #> 2 5 -3 #> 3 14 3 #> 4 -14 -3 #> 5 22 -3 #> 6 -22 3 # }"},{"path":"https://nflreadr.nflverse.com/reference/clean_player_names.html","id":null,"dir":"Reference","previous_headings":"","what":"Create Player Merge Names — clean_player_names","title":"Create Player Merge Names — clean_player_names","text":"Applies name-cleaning heuristics facilitate joins. heuristics may include: removing periods apostrophes removing common suffixes, Jr, Sr, II, III, IV converting lowercase using ffscrapr::dp_name_mapping common name substitutions, Mitch Trubisky Mitchell Trubisky","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_player_names.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create Player Merge Names — clean_player_names","text":"","code":"clean_player_names( player_name, lowercase = FALSE, convert_lastfirst = TRUE, use_name_database = TRUE )"},{"path":"https://nflreadr.nflverse.com/reference/clean_player_names.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create Player Merge Names — clean_player_names","text":"player_name character vector player names lowercase defaults FALSE - TRUE, converts lowercase convert_lastfirst defaults TRUE - converts names \"Last, First\" \"First Last\" use_name_database uses internal name database common substitutions (Mitchell Trubisky Mitch Trubisky etc)","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_player_names.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create Player Merge Names — clean_player_names","text":"character vector cleaned names","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_player_names.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create Player Merge Names — clean_player_names","text":"Equivalent operation done ffscrapr::dp_clean_names() uses player name database.","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_player_names.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create Player Merge Names — clean_player_names","text":"","code":"clean_player_names(c(\"A.J. Green\", \"Odell Beckham Jr. \", \"Le'Veon Bell Sr.\")) #> [1] \"AJ Green\" \"Odell Beckham\" \"LeVeon Bell\" clean_player_names(c(\"Trubisky, Mitch\", \"Atwell, Chatarius\", \"Elliott, Zeke\", \"Elijah Moore\"), convert_lastfirst = TRUE) #> [1] \"Mitchell Trubisky\" \"Tutu Atwell\" \"Ezekiel Elliott\" #> [4] \"Elijah Moore\""},{"path":"https://nflreadr.nflverse.com/reference/clean_team_abbrs.html","id":null,"dir":"Reference","previous_headings":"","what":"Standardize NFL Team Abbreviations — clean_team_abbrs","title":"Standardize NFL Team Abbreviations — clean_team_abbrs","text":"function standardizes NFL team abbreviations nflverse defaults. helps joins plotting, especially new nflplotR package!","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_team_abbrs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Standardize NFL Team Abbreviations — clean_team_abbrs","text":"","code":"clean_team_abbrs(abbr, current_location = TRUE, keep_non_matches = TRUE)"},{"path":"https://nflreadr.nflverse.com/reference/clean_team_abbrs.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Standardize NFL Team Abbreviations — clean_team_abbrs","text":"abbr character vector abbreviations current_location TRUE (default), abbreviation recent team location used. keep_non_matches TRUE (default) element abbr matched internal mapping vectors kept . Otherwise replaced NA.","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_team_abbrs.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Standardize NFL Team Abbreviations — clean_team_abbrs","text":"character vector length abbr cleaned team abbreviations included team_abbr_mapping team_abbr_mapping_norelocate (depending value current_location). Non matches may replaced NA (depending value keep_non_matches).","code":""},{"path":"https://nflreadr.nflverse.com/reference/clean_team_abbrs.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Standardize NFL Team Abbreviations — clean_team_abbrs","text":"","code":"x <- c(\"PIE\", \"LAR\", \"PIT\", \"CRD\", \"OAK\", \"SL\") # use current location and keep non matches clean_team_abbrs(x) #> [1] \"PIE\" \"LA\" \"PIT\" \"ARI\" \"LV\" \"LA\" # keep old location and replace non matches clean_team_abbrs(x, current_location = FALSE, keep_non_matches = FALSE) #> [1] NA \"LA\" \"PIT\" \"ARI\" \"OAK\" \"STL\""},{"path":"https://nflreadr.nflverse.com/reference/clear_cache.html","id":null,"dir":"Reference","previous_headings":"","what":"Clear function cache — clear_cache","title":"Clear function cache — clear_cache","text":"function clears memoised cache functions memoised nflreadr.","code":""},{"path":"https://nflreadr.nflverse.com/reference/clear_cache.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Clear function cache — clear_cache","text":"","code":"clear_cache() .clear_cache()"},{"path":"https://nflreadr.nflverse.com/reference/clear_cache.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Clear function cache — clear_cache","text":"success message clearing cache.","code":""},{"path":"https://nflreadr.nflverse.com/reference/clear_cache.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Clear function cache — clear_cache","text":"","code":"clear_cache() #> ✔ nflreadr function cache cleared!"},{"path":"https://nflreadr.nflverse.com/reference/csv_from_url.html","id":null,"dir":"Reference","previous_headings":"","what":"Load .csv / .csv.gz file from a remote connection — csv_from_url","title":"Load .csv / .csv.gz file from a remote connection — csv_from_url","text":"thin wrapper data.table::fread, memoised & cached twenty four hours.","code":""},{"path":"https://nflreadr.nflverse.com/reference/csv_from_url.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Load .csv / .csv.gz file from a remote connection — csv_from_url","text":"","code":"csv_from_url(...)"},{"path":"https://nflreadr.nflverse.com/reference/csv_from_url.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Load .csv / .csv.gz file from a remote connection — csv_from_url","text":"... Arguments passed data.table::fread input single character string. value inspected deferred either file= (\\n present), text= (least one \\n present) cmd= (\\n present, least one space present, file name). Exactly one input=, file=, text=, cmd= used call. file File name working directory, path file (passed path.expand convenience), URL starting http://, file://, etc. Compressed files extension .gz .bz2 supported R.utils package installed. text input data character vector one lines, example returned readLines(). cmd shell command pre-processes file; e.g. fread(cmd=paste(\"grep\",word,\"filename\")). See Details. sep separator columns. Defaults character set [,\\t |;:] separates sample rows number lines number fields. Use NULL \"\" specify separator; .e. line single character column like base::readLines . sep2 separator within columns. list column returned cell vector values. much faster using less working memory strsplit afterwards similar techniques. column sep2 can different first character set [,\\t |;], sep, exists inside field outside quoted regions sample. NB: sep2 yet implemented. nrows maximum number rows read. Unlike read.table, need set estimate number rows file better speed already automatically determined fread almost instantly using large sample lines. nrows=0 returns column names typed empty columns determined large sample; useful dry run large file quickly check format consistency set files starting read . header first data line contain column names? Defaults according whether every non-empty field first data line type character. , TRUE supplied, empty column names given default name. na.strings character vector strings interpreted NA values. default, \",,\" columns types, including type character read NA consistency. ,\"\", unambiguous read empty string. read ,NA, NA, set na.strings=\"NA\". read ,, blank string \"\", set na.strings=NULL. occur file, strings na.strings appear quoted since string literal ,\"NA\", distinguished ,NA,, example, na.strings=\"NA\". stringsAsFactors Convert character columns factors? verbose chatty report timings? skip 0 (default) start first line finds first row consistent number columns. automatically avoids irregular header information column names row. skip>0 means ignore first skip rows manually. skip=\"string\" searches \"string\" file (e.g. substring column names row) starts line (inspired read.xls package gdata). select vector column names numbers keep, drop rest. select may specify types way colClasses; .e., vector colname=type pairs, list type=col(s) pairs. forms select, order columns specified determines order columns result. drop Vector column names numbers drop, keep rest. colClasses utils::read.csv; .e., unnamed vector types corresponding columns file, named vector specifying types subset columns name. default, NULL means types inferred data file. , data.table supports named list vectors column names numbers list names class names; see examples. list form makes easier set batch columns particular class. column numbers used list form, refer column number file column number select drop applied. type coercion results error, introduces NAs, result loss accuracy, coercion attempt aborted column warning column's type left unchanged. really desire data loss (e.g. reading 3.14 integer) truncate columns afterwards explicitly clear future readers code. integer64 \"integer64\" (default) reads columns detected containing integers larger 2^31 type bit64::integer64. Alternatively, \"double\"|\"numeric\" reads utils::read.csv ; .e., possibly loss precision silently. , \"character\". dec decimal separator utils::read.csv. \".\" (default) usually \",\". See details. col.names vector optional names variables (columns). default use header column present detected, \"V\" followed column number. applied check.names key index. check.names default FALSE. TRUE names variables data.table checked ensure syntactically valid variable names. necessary adjusted (make.names) , also ensure duplicates. encoding default \"unknown\". possible options \"UTF-8\" \"Latin-1\". Note: used re-encode input, rather enables handling encoded strings native encoding. quote default (\"\\\"\"), field starts double quote, fread handles embedded quotes robustly explained Details. fails, another attempt made read field , .e., quotes disabled. setting quote=\"\", field always read quotes disabled. expected ever need pass anything \\\"\\\" quote; .e., turn . strip.white default TRUE. Strips leading trailing whitespaces unquoted fields. FALSE, header trailing spaces removed. fill logical (default FALSE). TRUE case rows unequal length, blank fields implicitly filled. blank.lines.skip logical, default FALSE. TRUE blank lines input ignored. key Character vector one column names passed setkey. may single comma separated string key=\"x,y,z\", vector names key=c(\"x\",\"y\",\"z\"). valid argument data.table=TRUE. applicable, refer column names given col.names. index Character vector list character vectors one column names passed setindexv. key, comma-separated notation like index=\"x,y,z\" accepted convenience. valid argument data.table=TRUE. applicable, refer column names given col.names. showProgress TRUE displays progress console ETA greater 3 seconds. produced fread's C code nice (R level) txtProgressBar tkProgressBar easily available. data.table TRUE returns data.table. FALSE returns data.frame. default argument can changed options(datatable.fread.datatable=FALSE). nThread number threads use. Experiment see works best data hardware. logical01 TRUE column containing 0s 1s read logical, otherwise integer. keepLeadingZeros TRUE column containing numeric data leading zeros read character, otherwise leading zeros removed converted numeric. yaml TRUE, fread attempt parse (using yaml.load) top input YAML, glean parameters relevant improving performance fread data . entire YAML section returned parsed list yaml_metadata attribute. See Details. autostart Deprecated ignored warning. Please use skip instead. tmpdir Directory use tmpdir argument tempfile calls, e.g. input URL shell command. default tempdir() can controlled setting TMPDIR starting R session; see base::tempdir. tz Relevant datetime values Z UTC-offset end, .e. unmarked datetime, written utils::write.csv. default tz=\"UTC\" reads unmarked datetime UTC POSIXct efficiently. tz=\"\" reads unmarked datetime type character (slowly) .POSIXct can interpret (slowly) character datetimes local timezone; e.g. using \"POSIXct\" colClasses=. Note fwrite() default writes datetime UTC including final Z therefore fwrite's output read fread consistently quickly without needing use tz= colClasses=. TZ environment variable set \"UTC\" (\"\" non-Windows unset vs `\"\"` significant) R session's timezone already UTC tz=\"\" result unmarked datetimes read UTC POSIXct. information, please see news items v1.13.0 v1.14.0.","code":""},{"path":"https://nflreadr.nflverse.com/reference/csv_from_url.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Load .csv / .csv.gz file from a remote connection — csv_from_url","text":"dataframe created data.table::fread()","code":""},{"path":"https://nflreadr.nflverse.com/reference/csv_from_url.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Load .csv / .csv.gz file from a remote connection — csv_from_url","text":"","code":"# \\donttest{ try({ # prevents cran errors csv_from_url(\"https://github.com/nflverse/nflverse-data/releases/download/test/combines.csv\") }) #> season draft_year draft_team draft_round draft_ovr pfr_id #> 1: 2000 2000 New York Jets 1 13 AbraJo00 #> 2: 2000 2000 Seattle Seahawks 1 19 AlexSh00 #> 3: 2000 2000 Kansas City Chiefs 6 188 AlfoDa20 #> 4: 2000 NA NA NA #> 5: 2000 2000 Carolina Panthers 1 23 AndeRa21 #> --- #> 7676: 2022 2022 Green Bay Packers 1 28 WyatDe00 #> 7677: 2022 NA NA NA WydeJa00 #> 7678: 2022 2022 Cleveland Browns 4 124 YorkCa00 #> 7679: 2022 NA NA NA #> 7680: 2022 2022 New England Patriots 4 137 ZappBa00 #> cfb_id player_name pos school ht wt forty #> 1: John Abraham OLB South Carolina 6-4 252 4.55 #> 2: shaun-alexander-1 Shaun Alexander RB Alabama 6-0 218 4.58 #> 3: Darnell Alford OT Boston Col. 6-4 334 5.56 #> 4: Kyle Allamon TE Texas Tech 6-2 253 4.97 #> 5: Rashard Anderson CB Jackson State 6-2 206 4.55 #> --- #> 7676: devonte-wyatt-1 Devonte Wyatt DT Georgia 6-3 304 4.77 #> 7677: jalen-wydermyer-1 Jalen Wydermyer TE Texas A&M 6-4 255 NA #> 7678: cade-york-1 Cade York K LSU 6-1 206 NA #> 7679: Nick Zakelj OT Fordham 6-6 316 5.13 #> 7680: bailey-zappe-1 Bailey Zappe QB Western Kentucky 6-1 215 4.88 #> bench vertical broad_jump cone shuttle #> 1: NA NA NA NA NA #> 2: NA NA NA NA NA #> 3: 23 25.0 94 8.48 4.98 #> 4: NA 29.0 104 7.29 4.49 #> 5: NA 34.0 123 7.18 4.15 #> --- #> 7676: NA 29.0 111 NA NA #> 7677: NA NA NA NA NA #> 7678: 12 NA NA NA NA #> 7679: 27 28.5 110 7.75 4.71 #> 7680: NA 30.0 109 7.19 4.40 # }"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_combine.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Combine — dictionary_combine","title":"Data Dictionary: Combine — dictionary_combine","text":"dataframe containing data dictionary load_combine()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_combine.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Combine — dictionary_combine","text":"","code":"dictionary_combine"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_combine.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Combine — dictionary_combine","text":"object class data.frame 18 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_contracts.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Contracts — dictionary_contracts","title":"Data Dictionary: Contracts — dictionary_contracts","text":"dataframe containing data dictionary load_contracts()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_contracts.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Contracts — dictionary_contracts","text":"","code":"dictionary_contracts"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_contracts.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Contracts — dictionary_contracts","text":"object class data.frame 15 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_depth_charts.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Depth Charts — dictionary_depth_charts","title":"Data Dictionary: Depth Charts — dictionary_depth_charts","text":"dataframe containing data dictionary load_depth_charts()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_depth_charts.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Depth Charts — dictionary_depth_charts","text":"","code":"dictionary_depth_charts"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_depth_charts.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Depth Charts — dictionary_depth_charts","text":"object class data.frame 13 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_draft_picks.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Draft Picks — dictionary_draft_picks","title":"Data Dictionary: Draft Picks — dictionary_draft_picks","text":"dataframe containing data dictionary load_draft_picks()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_draft_picks.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Draft Picks — dictionary_draft_picks","text":"","code":"dictionary_draft_picks"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_draft_picks.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Draft Picks — dictionary_draft_picks","text":"object class data.frame 36 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_espn_qbr.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: ESPN QBR — dictionary_espn_qbr","title":"Data Dictionary: ESPN QBR — dictionary_espn_qbr","text":"dataframe containing data dictionary load_espn_qbr()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_espn_qbr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: ESPN QBR — dictionary_espn_qbr","text":"","code":"dictionary_espn_qbr"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_espn_qbr.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: ESPN QBR — dictionary_espn_qbr","text":"object class data.frame 23 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_ff_opportunity.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Expected Fantasy Points — dictionary_ff_opportunity","title":"Data Dictionary: Expected Fantasy Points — dictionary_ff_opportunity","text":"dataframe containing data dictionary load_ff_opportunity()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_ff_opportunity.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Expected Fantasy Points — dictionary_ff_opportunity","text":"","code":"dictionary_ff_opportunity"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_ff_opportunity.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Expected Fantasy Points — dictionary_ff_opportunity","text":"object class data.frame 218 rows 4 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_ff_playerids.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Fantasy Player IDs — dictionary_ff_playerids","title":"Data Dictionary: Fantasy Player IDs — dictionary_ff_playerids","text":"dataframe containing data dictionary load_ff_playerids()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_ff_playerids.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Fantasy Player IDs — dictionary_ff_playerids","text":"","code":"dictionary_ff_playerids"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_ff_playerids.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Fantasy Player IDs — dictionary_ff_playerids","text":"object class data.frame 35 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_ff_rankings.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Fantasy Football Rankings — dictionary_ff_rankings","title":"Data Dictionary: Fantasy Football Rankings — dictionary_ff_rankings","text":"dataframe containing data dictionary load_ff_rankings()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_ff_rankings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Fantasy Football Rankings — dictionary_ff_rankings","text":"","code":"dictionary_ff_rankings"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_ff_rankings.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Fantasy Football Rankings — dictionary_ff_rankings","text":"object class data.frame 25 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_injuries.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Injuries — dictionary_injuries","title":"Data Dictionary: Injuries — dictionary_injuries","text":"dataframe containing data dictionary load_injuries()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_injuries.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Injuries — dictionary_injuries","text":"","code":"dictionary_injuries"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_injuries.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Injuries — dictionary_injuries","text":"object class data.frame 16 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_nextgen_stats.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Next Gen Stats — dictionary_nextgen_stats","title":"Data Dictionary: Next Gen Stats — dictionary_nextgen_stats","text":"dataframe containing data dictionary load_nextgen_stats()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_nextgen_stats.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Next Gen Stats — dictionary_nextgen_stats","text":"","code":"dictionary_nextgen_stats"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_nextgen_stats.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Next Gen Stats — dictionary_nextgen_stats","text":"object class data.frame 51 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_participation.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Participation — dictionary_participation","title":"Data Dictionary: Participation — dictionary_participation","text":"dataframe containing data dictionary load_participation()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_participation.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Participation — dictionary_participation","text":"","code":"dictionary_participation"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_participation.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Participation — dictionary_participation","text":"object class data.frame 14 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_pbp.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Play by Play — dictionary_pbp","title":"Data Dictionary: Play by Play — dictionary_pbp","text":"dataframe containing data dictionary load_pbp()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_pbp.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Play by Play — dictionary_pbp","text":"","code":"dictionary_pbp"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_pbp.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Play by Play — dictionary_pbp","text":"object class data.frame 372 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_pfr_passing.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: PFR Passing — dictionary_pfr_passing","title":"Data Dictionary: PFR Passing — dictionary_pfr_passing","text":"dataframe containing data dictionary load_pfr_passing()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_pfr_passing.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: PFR Passing — dictionary_pfr_passing","text":"","code":"dictionary_pfr_passing"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_pfr_passing.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: PFR Passing — dictionary_pfr_passing","text":"object class data.frame 28 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_player_stats.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Player Stats — dictionary_player_stats","title":"Data Dictionary: Player Stats — dictionary_player_stats","text":"dataframe containing data dictionary load_player_stats()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_player_stats.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Player Stats — dictionary_player_stats","text":"","code":"dictionary_player_stats"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_player_stats.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Player Stats — dictionary_player_stats","text":"object class data.frame 48 rows 2 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_player_stats_def.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Player Stats Defense — dictionary_player_stats_def","title":"Data Dictionary: Player Stats Defense — dictionary_player_stats_def","text":"dataframe containing data dictionary load_player_stats()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_player_stats_def.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Player Stats Defense — dictionary_player_stats_def","text":"","code":"dictionary_player_stats_def"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_player_stats_def.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Player Stats Defense — dictionary_player_stats_def","text":"object class data.frame 22 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_rosters.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Rosters — dictionary_rosters","title":"Data Dictionary: Rosters — dictionary_rosters","text":"dataframe containing data dictionary load_rosters()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_rosters.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Rosters — dictionary_rosters","text":"","code":"dictionary_rosters"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_rosters.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Rosters — dictionary_rosters","text":"object class data.frame 25 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_schedules.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Schedules — dictionary_schedules","title":"Data Dictionary: Schedules — dictionary_schedules","text":"dataframe containing data dictionary load_schedules()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_schedules.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Schedules — dictionary_schedules","text":"","code":"dictionary_schedules"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_schedules.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Schedules — dictionary_schedules","text":"object class data.frame 45 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_snap_counts.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Snap Counts — dictionary_snap_counts","title":"Data Dictionary: Snap Counts — dictionary_snap_counts","text":"dataframe containing data dictionary load_snap_counts()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_snap_counts.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Snap Counts — dictionary_snap_counts","text":"","code":"dictionary_snap_counts"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_snap_counts.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Snap Counts — dictionary_snap_counts","text":"object class data.frame 16 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/dictionary_trades.html","id":null,"dir":"Reference","previous_headings":"","what":"Data Dictionary: Trades — dictionary_trades","title":"Data Dictionary: Trades — dictionary_trades","text":"dataframe containing data dictionary load_trades()","code":""},{"path":"https://nflreadr.nflverse.com/reference/dictionary_trades.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Data Dictionary: Trades — dictionary_trades","text":"","code":"dictionary_trades"},{"path":"https://nflreadr.nflverse.com/reference/dictionary_trades.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Data Dictionary: Trades — dictionary_trades","text":"object class data.frame 11 rows 3 columns.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/get_current_week.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Current Week — get_current_week","title":"Get Current Week — get_current_week","text":"helper function returns upcoming NFL regular season week based either nflverse schedules file (found load_schedules()) date-based heuristics (number weeks since first Monday September)","code":""},{"path":"https://nflreadr.nflverse.com/reference/get_current_week.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Current Week — get_current_week","text":"","code":"get_current_week(use_date = FALSE)"},{"path":"https://nflreadr.nflverse.com/reference/get_current_week.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Current Week — get_current_week","text":"use_date logical determine whether use date-based heuristics determine current week, default FALSE (.e. uses schedule file)","code":""},{"path":"https://nflreadr.nflverse.com/reference/get_current_week.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Current Week — get_current_week","text":"current nfl regular season week numeric","code":""},{"path":"https://nflreadr.nflverse.com/reference/get_current_week.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Get Current Week — get_current_week","text":"Note date heuristic count new week starting Thursdays, schedule-based method count new week last game previous week, e.g. MNF completed. Tan Ben argued .","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/get_current_week.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Current Week — get_current_week","text":"","code":"{ # \\donttest{ try({ # schedules file as per default requires online access get_current_week() }) # } # using the date method works offline get_current_week(use_date = TRUE) } #> [1] 22"},{"path":"https://nflreadr.nflverse.com/reference/join_coalesce.html","id":null,"dir":"Reference","previous_headings":"","what":"Coalescing join — join_coalesce","title":"Coalescing join — join_coalesce","text":"EXPERIMENTAL! function joins two dataframes together key, coalesces columns shared names (.e. fills NAs). utility function primarily used internally within nflverse help build player IDs","code":""},{"path":"https://nflreadr.nflverse.com/reference/join_coalesce.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Coalescing join — join_coalesce","text":"","code":"join_coalesce( x, y, by = NULL, type = c(\"left\", \"inner\", \"full\"), ..., by.x = NULL, by.y = NULL, sort = TRUE, incomparables = c(NA, NaN) )"},{"path":"https://nflreadr.nflverse.com/reference/join_coalesce.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Coalescing join — join_coalesce","text":"x, y dataframes. coerced data.table keys join , plain named character vector type one \"left\" (rows x matching rows y), \"inner\" (matching rows x y), \"full\" (rows x y) ... args passed merge.data.frame() .x, .y alternate form keys join - provided, override . sort whether sort output join keys incomparables keys match , .e. NA match NA.","code":""},{"path":"https://nflreadr.nflverse.com/reference/join_coalesce.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Coalescing join — join_coalesce","text":"data.table joining x y dataframes together, every column x y patching NA values x y.","code":""},{"path":"https://nflreadr.nflverse.com/reference/join_coalesce.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Coalescing join — join_coalesce","text":"","code":"x <- data.frame(id1 = c(NA_character_,letters[1:4]), a = c(1,NA,3,NA,5), b = 1:5 * 10) y <- data.frame(id2 = c(letters[3:11],NA_character_), a = -(1:10), c = 1:10 * 100) join_coalesce(x,y, by = c(\"id1\"=\"id2\")) #> Warning: Join `by` keys in x have NAs #> Join `by` keys in y have NAs #> id1 a b c #> 1: a NA 20 NA #> 2: b 3 30 NA #> 3: c -1 40 100 #> 4: d 5 50 200 #> 5: 1 10 NA join_coalesce(x,y, by.x = \"id1\", by.y = \"id2\") #> Warning: Join `by` keys in x have NAs #> Join `by` keys in y have NAs #> id1 a b c #> 1: a NA 20 NA #> 2: b 3 30 NA #> 3: c -1 40 100 #> 4: d 5 50 200 #> 5: 1 10 NA join_coalesce(x,y, by = c(\"id1\"=\"id2\"), type = \"inner\") #> Warning: Join `by` keys in x have NAs #> Join `by` keys in y have NAs #> id1 a b c #> 1: c -1 40 100 #> 2: d 5 50 200 join_coalesce(x,y, by = c(\"id1\"=\"id2\"), type = \"full\") #> Warning: Join `by` keys in x have NAs #> Join `by` keys in y have NAs #> id1 a b c #> 1: a NA 20 NA #> 2: b 3 30 NA #> 3: c -1 40 100 #> 4: d 5 50 200 #> 5: e -3 NA 300 #> 6: f -4 NA 400 #> 7: g -5 NA 500 #> 8: h -6 NA 600 #> 9: i -7 NA 700 #> 10: j -8 NA 800 #> 11: k -9 NA 900 #> 12: 1 10 NA #> 13: -10 NA 1000"},{"path":"https://nflreadr.nflverse.com/reference/latest_season.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Latest Season — most_recent_season","title":"Get Latest Season — most_recent_season","text":"helper function choose recent season available given dataset","code":""},{"path":"https://nflreadr.nflverse.com/reference/latest_season.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Latest Season — most_recent_season","text":"","code":"most_recent_season(roster = FALSE) get_latest_season(roster = FALSE) get_current_season(roster = FALSE)"},{"path":"https://nflreadr.nflverse.com/reference/latest_season.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Latest Season — most_recent_season","text":"roster TRUE/FALSE flag: TRUE, returns current year March 15th later. FALSE, returns current year September 1st later. Otherwise returns current year minus 1.","code":""},{"path":"https://nflreadr.nflverse.com/reference/latest_season.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Latest Season — most_recent_season","text":"recent season (four digit numeric)","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/load_combine.html","id":null,"dir":"Reference","previous_headings":"","what":"Load Combine Data from PFR — load_combine","title":"Load Combine Data from PFR — load_combine","text":"Loads combine data since 2000 courtesy PFR.","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_combine.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Load Combine Data from PFR — load_combine","text":"","code":"load_combine( seasons = TRUE, file_type = getOption(\"nflreadr.prefer\", default = \"rds\") )"},{"path":"https://nflreadr.nflverse.com/reference/load_combine.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Load Combine Data from PFR — load_combine","text":"seasons numeric vector seasons return, default TRUE returns available data file_type One c(\"rds\", \"qs\", \"csv\", \"parquet\"). Can also set globally options(nflreadr.prefer)","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_combine.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Load Combine Data from PFR — load_combine","text":"tibble NFL combine data provided Pro Football Reference.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/load_combine.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Load Combine Data from PFR — load_combine","text":"","code":"# \\donttest{ try({ # prevents cran errors load_combine() }) #> ── nflverse combine measurements ─────────────────────────────────────────────── #> ℹ Data updated: 2023-05-08 22:18:55 UTC #> # A tibble: 7,999 × 18 #> season draft_year draft_team draft_round draft_ovr pfr_id cfb_id player_name #> #> 1 2000 2000 New York J… 1 13 AbraJ… NA John Abrah… #> 2 2000 2000 Seattle Se… 1 19 AlexS… shaun… Shaun Alex… #> 3 2000 2000 Kansas Cit… 6 188 AlfoD… NA Darnell Al… #> 4 2000 NA NA NA NA NA NA Kyle Allam… #> 5 2000 2000 Carolina P… 1 23 AndeR… NA Rashard An… #> 6 2000 NA NA NA NA arian… NA Jake Arians #> 7 2000 2000 Washington… 1 2 ArriL… lavar… LaVar Arri… #> 8 2000 NA NA NA NA AtkiC… NA Corey Atki… #> 9 2000 NA NA NA NA NA NA Kyle Atteb… #> 10 2000 2000 Chicago Be… 4 125 AustR… NA Reggie Aus… #> # ℹ 7,989 more rows #> # ℹ 10 more variables: pos , school , ht , wt , #> # forty , bench , vertical , broad_jump , cone , #> # shuttle # }"},{"path":"https://nflreadr.nflverse.com/reference/load_contracts.html","id":null,"dir":"Reference","previous_headings":"","what":"Load Historical Player Contracts from OverTheCap.com — load_contracts","title":"Load Historical Player Contracts from OverTheCap.com — load_contracts","text":"Loads player contracts OverTheCap.com","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_contracts.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Load Historical Player Contracts from OverTheCap.com — load_contracts","text":"","code":"load_contracts(file_type = getOption(\"nflreadr.prefer\", default = \"rds\"))"},{"path":"https://nflreadr.nflverse.com/reference/load_contracts.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Load Historical Player Contracts from OverTheCap.com — load_contracts","text":"file_type One \"rds\", \"qs\", \"csv\", \"parquet\". Can also set globally options(nflreadr.prefer)","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_contracts.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Load Historical Player Contracts from OverTheCap.com — load_contracts","text":"tibble active non-active NFL player contracts.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/load_contracts.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Load Historical Player Contracts from OverTheCap.com — load_contracts","text":"","code":"# \\donttest{ try({ # prevents cran errors load_contracts() }) #> ── nflverse Historical Contract Data from OverTheCap.com ─────────────────────── #> ℹ Data updated: 2023-08-07 07:16:38 UTC #> # A tibble: 36,950 × 24 #> player position team is_active year_signed years value apy guaranteed #> #> 1 Aaron Rodg… QB GB/N… FALSE 2022 5 151. 50.3 151. #> 2 Josh Allen QB Bills TRUE 2021 6 258 43 150 #> 3 Russell Wi… QB Bron… TRUE 2022 5 245 49 165 #> 4 Justin Her… QB Char… TRUE 2023 5 262. 52.5 194. #> 5 Lamar Jack… QB Rave… TRUE 2023 5 260 52 185 #> 6 Patrick Ma… QB Chie… TRUE 2020 10 450 45 141 #> 7 Jalen Hurts QB Eagl… TRUE 2023 5 255 51 179. #> 8 Kyler Murr… QB Card… TRUE 2022 5 230. 46.1 160 #> 9 Deshaun Wa… QB Brow… TRUE 2022 5 230 46 230 #> 10 Dak Presco… QB Cowb… TRUE 2021 4 160 40 126 #> # ℹ 36,940 more rows #> # ℹ 15 more variables: apy_cap_pct , inflated_value , #> # inflated_apy , inflated_guaranteed , player_page , #> # otc_id , date_of_birth , height , weight , #> # college , draft_year , draft_round , draft_overall , #> # draft_team , cols # }"},{"path":"https://nflreadr.nflverse.com/reference/load_depth_charts.html","id":null,"dir":"Reference","previous_headings":"","what":"Load Weekly Depth Charts — load_depth_charts","title":"Load Weekly Depth Charts — load_depth_charts","text":"Loads depth charts NFL team week back 2001.","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_depth_charts.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Load Weekly Depth Charts — load_depth_charts","text":"","code":"load_depth_charts( seasons = most_recent_season(), file_type = getOption(\"nflreadr.prefer\", default = \"rds\") )"},{"path":"https://nflreadr.nflverse.com/reference/load_depth_charts.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Load Weekly Depth Charts — load_depth_charts","text":"seasons numeric vector specifying seasons return, TRUE returns available data. Defaults latest season. file_type One c(\"rds\", \"qs\", \"csv\", \"parquet\"). Can also set globally options(nflreadr.prefer)","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_depth_charts.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Load Weekly Depth Charts — load_depth_charts","text":"tibble week-level depth charts team.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/load_depth_charts.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Load Weekly Depth Charts — load_depth_charts","text":"","code":"# \\donttest{ try({ # prevents cran errors load_depth_charts(2020) }) #> ── nflverse depth charts ─────────────────────────────────────────────────────── #> ℹ Data updated: 2022-08-02 01:40:11 UTC #> # A tibble: 36,168 × 15 #> season club_code week game_type depth_team last_name first_name #> #> 1 2020 ATL 1 REG 2 Schaub Matt #> 2 2020 ATL 2 REG 2 Schaub Matt #> 3 2020 ATL 3 REG 2 Schaub Matt #> 4 2020 ATL 4 REG 2 Schaub Matt #> 5 2020 ATL 5 REG 2 Schaub Matt #> 6 2020 ATL 6 REG 2 Schaub Matt #> 7 2020 ATL 7 REG 2 Schaub Matt #> 8 2020 ATL 8 REG 2 Schaub Matt #> 9 2020 ATL 9 REG 2 Schaub Matt #> 10 2020 ATL 10 REG 2 Schaub Matt #> # ℹ 36,158 more rows #> # ℹ 8 more variables: football_name , formation , gsis_id , #> # jersey_number , position , elias_id , depth_position , #> # full_name # }"},{"path":"https://nflreadr.nflverse.com/reference/load_draft_picks.html","id":null,"dir":"Reference","previous_headings":"","what":"Load Draft Picks from PFR — load_draft_picks","title":"Load Draft Picks from PFR — load_draft_picks","text":"Loads every draft pick since 1980 courtesy PFR.","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_draft_picks.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Load Draft Picks from PFR — load_draft_picks","text":"","code":"load_draft_picks( seasons = TRUE, file_type = getOption(\"nflreadr.prefer\", default = \"rds\") )"},{"path":"https://nflreadr.nflverse.com/reference/load_draft_picks.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Load Draft Picks from PFR — load_draft_picks","text":"seasons numeric vector seasons return, default TRUE returns available data file_type One c(\"rds\", \"qs\", \"csv\", \"parquet\"). Can also set globally options(nflreadr.prefer)","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_draft_picks.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Load Draft Picks from PFR — load_draft_picks","text":"tibble NFL draft picks provided Pro Football Reference.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/load_draft_picks.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Load Draft Picks from PFR — load_draft_picks","text":"","code":"# \\donttest{ try({ # prevents cran errors load_draft_picks() }) #> ── nflverse Draft Picks, via Pro Football Reference ──────────────────────────── #> ℹ Data updated: 2023-07-05 13:33:15 UTC #> # A tibble: 12,156 × 36 #> season round pick team gsis_id pfr_player_id cfb_player_id pfr_player_name #> #> 1 1980 1 1 DET \"\" SimsBi00 \"billy-sims-1\" Billy Sims #> 2 1980 1 2 NYJ \"\" JoneLa00 \"lam-jones-1\" Lam Jones #> 3 1980 1 3 CIN \"\" MunoAn00 \"\" Anthony Munoz #> 4 1980 1 4 GNB \"\" ClarBr23 \"bruce-clark-… Bruce Clark #> 5 1980 1 5 BAL \"\" DickCu00 \"curtis-dicke… Curtis Dickey #> 6 1980 1 6 STL \"\" GreeCu21 \"curtis-greer… Curtis Greer #> 7 1980 1 7 ATL \"\" MillJu00 \"junior-mille… Junior Miller #> 8 1980 1 8 NYG \"\" HaynMa00 \"mark-haynes-… Mark Haynes #> 9 1980 1 9 MIN \"\" MartDo21 \"\" Doug Martin #> 10 1980 1 10 SEA \"\" GreeJa01 \"jacob-green-… Jacob Green #> # ℹ 12,146 more rows #> # ℹ 28 more variables: hof , position , category , side , #> # college , age , to , allpro , probowls , #> # seasons_started , w_av , car_av , dr_av , games , #> # pass_completions , pass_attempts , pass_yards , #> # pass_tds , pass_ints , rush_atts , rush_yards , #> # rush_tds , receptions , rec_yards , rec_tds , … # }"},{"path":"https://nflreadr.nflverse.com/reference/load_espn_qbr.html","id":null,"dir":"Reference","previous_headings":"","what":"Load ESPN's QBR — load_espn_qbr","title":"Load ESPN's QBR — load_espn_qbr","text":"Load ESPN's QBR","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_espn_qbr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Load ESPN's QBR — load_espn_qbr","text":"","code":"load_espn_qbr( league = c(\"nfl\", \"college\"), seasons = most_recent_season(), summary_type = c(\"season\", \"weekly\") )"},{"path":"https://nflreadr.nflverse.com/reference/load_espn_qbr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Load ESPN's QBR — load_espn_qbr","text":"league One \"nfl\" \"college\", defaults \"nfl\" seasons numeric vector seasons return, data available since 2006. Defaults latest season available. TRUE select seasons. summary_type One \"season\" \"weekly\", defaults season","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_espn_qbr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Load ESPN's QBR — load_espn_qbr","text":"tibble season-level injury report data.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/load_espn_qbr.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Load ESPN's QBR — load_espn_qbr","text":"","code":"# \\donttest{ load_espn_qbr(\"nfl\",2020) #> ── nflverse QBR (via ESPN/espnscrapeR) ───────────────────────────────────────── #> ℹ Data updated: 2023-08-07 12:09:44 UTC #> # A tibble: 84 × 23 #> season season_type game_week team_abb player_id name_short rank qbr_total #> #> 1 2020 Regular Season Total GB 8439 A. Rodgers 1 84.3 #> 2 2020 Regular Season Total KC 3139477 P. Mahomes 2 82.9 #> 3 2020 Regular Season Total BUF 3918298 J. Allen 3 81.7 #> 4 2020 Regular Season Total TEN 14876 R. Tanneh… 4 78.3 #> 5 2020 Regular Season Total MIA 8664 R. Fitzpa… 5 76.8 #> 6 2020 Regular Season Total NO 2580 D. Brees 6 74.6 #> 7 2020 Regular Season Total BAL 3916387 L. Jackson 7 73.7 #> 8 2020 Regular Season Total SEA 14881 R. Wilson 8 73.5 #> 9 2020 Regular Season Total TB 2330 T. Brady 9 72.5 #> 10 2020 Regular Season Total CLE 3052587 B. Mayfie… 10 72.2 #> # ℹ 74 more rows #> # ℹ 15 more variables: pts_added , qb_plays , epa_total , #> # pass , run , exp_sack , penalty , qbr_raw , #> # sack , name_first , name_last , name_display , #> # headshot_href , team , qualified # }"},{"path":"https://nflreadr.nflverse.com/reference/load_ff_opportunity.html","id":null,"dir":"Reference","previous_headings":"","what":"Load Expected Fantasy Points — load_ff_opportunity","title":"Load Expected Fantasy Points — load_ff_opportunity","text":"function downloads precomputed expected points data ffopportunity automated releases.","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_ff_opportunity.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Load Expected Fantasy Points — load_ff_opportunity","text":"","code":"load_ff_opportunity( seasons = most_recent_season(), stat_type = c(\"weekly\", \"pbp_pass\", \"pbp_rush\"), model_version = c(\"latest\", \"v1.0.0\") )"},{"path":"https://nflreadr.nflverse.com/reference/load_ff_opportunity.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Load Expected Fantasy Points — load_ff_opportunity","text":"seasons numeric vector seasons return, defaults recent season. set TRUE, returns available data. stat_type one \"weekly\", \"pbp_pass\", \"pbp_rush\" model_version one \"latest\" \"v1.0.0\"","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_ff_opportunity.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Load Expected Fantasy Points — load_ff_opportunity","text":"Precomputed expected fantasy points data ffopportunity automated releases.","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/load_ff_opportunity.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Load Expected Fantasy Points — load_ff_opportunity","text":"","code":"# \\donttest{ try({ # prevents cran errors load_ff_opportunity() load_ff_opportunity(seasons = 2021, stat_type = \"pbp_pass\", model_version = \"v1.0.0\") }) #> ── nflverse ffopportunity expected points: pbp_pass ──────────────────────────── #> ℹ Data updated: 2022-09-27 11:35:02 UTC #> # A tibble: 19,769 × 57 #> game_id play_id desc passer_player_id passer_full_name passer_position #> #> 1 2021_01_ARI_… 76 (14:… 00-0029701 Ryan Tannehill QB #> 2 2021_01_ARI_… 100 (13:… 00-0029701 Ryan Tannehill QB #> 3 2021_01_ARI_… 152 (13:… 00-0035228 Kyler Murray QB #> 4 2021_01_ARI_… 218 (12:… 00-0035228 Kyler Murray QB #> 5 2021_01_ARI_… 253 (11:… 00-0035228 Kyler Murray QB #> 6 2021_01_ARI_… 386 (10:… 00-0035228 Kyler Murray QB #> 7 2021_01_ARI_… 410 (9:2… 00-0035228 Kyler Murray QB #> 8 2021_01_ARI_… 599 (8:3… 00-0035228 Kyler Murray QB #> 9 2021_01_ARI_… 621 (8:2… 00-0035228 Kyler Murray QB #> 10 2021_01_ARI_… 660 (8:1… 00-0035228 Kyler Murray QB #> # ℹ 19,759 more rows #> # ℹ 51 more variables: receiver_player_id , receiver_full_name , #> # receiver_position , posteam , two_point_attempt , #> # two_point_converted , pass_attempt , receiving_yards , #> # first_down_pass , fumble_lost , season , week , #> # complete_pass , yards_after_catch , pass_touchdown , #> # first_down , interception , relative_to_endzone , … # }"},{"path":"https://nflreadr.nflverse.com/reference/load_ff_playerids.html","id":null,"dir":"Reference","previous_headings":"","what":"Load Fantasy Player IDs — load_ff_playerids","title":"Load Fantasy Player IDs — load_ff_playerids","text":"Accesses DynastyProcess.com's database fantasy football player IDs, help connect nflverse various platforms IDs.","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_ff_playerids.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Load Fantasy Player IDs — load_ff_playerids","text":"","code":"load_ff_playerids()"},{"path":"https://nflreadr.nflverse.com/reference/load_ff_playerids.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Load Fantasy Player IDs — load_ff_playerids","text":"dataframe player IDs","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/load_ff_playerids.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Load Fantasy Player IDs — load_ff_playerids","text":"","code":"# \\donttest{ try({ # prevents cran errors load_ff_playerids() }) #> ── nflverse (ffverse) player IDs ─────────────────────────────────────────────── #> ℹ Data updated: 2023-08-07 12:09:48 UTC #> # A tibble: 11,310 × 35 #> mfl_id sportradar_id fantasypros_id gsis_id pff_id sleeper_id nfl_id espn_id #> #> 1 15702 93147c90-09c8… 24740 NA NA 9230 NA NA #> 2 16148 38475bfa-9773… 22900 NA NA 9228 NA NA #> 3 16149 4c8a2f7e-f982… 22987 NA NA 9999 NA NA #> 4 16150 7e91086f-9ca4… 23071 NA NA 9758 NA NA #> 5 16151 25b10007-802d… 24332 NA NA 9998 NA NA #> 6 16152 5fc5b4a6-a583… 24347 NA NA 9229 NA NA #> 7 16153 a5cc5958-01f9… 23927 NA NA 10857 NA NA #> 8 16154 84ba4cc6-8740… 24073 NA NA 9231 NA NA #> 9 16155 a7ef9eec-dab5… 23121 NA NA 10233 NA NA #> 10 16156 70376919-8220… 24728 NA NA 10215 NA NA #> # ℹ 11,300 more rows #> # ℹ 27 more variables: yahoo_id , fleaflicker_id , cbs_id , #> # rotowire_id , rotoworld_id , ktc_id , pfr_id , #> # cfbref_id , stats_id , stats_global_id , #> # fantasy_data_id , swish_id , name , merge_name , #> # position , team , birthdate , age , draft_year , #> # draft_round , draft_pick , draft_ovr , … # }"},{"path":"https://nflreadr.nflverse.com/reference/load_ff_rankings.html","id":null,"dir":"Reference","previous_headings":"","what":"Load Latest FantasyPros Rankings — load_ff_rankings","title":"Load Latest FantasyPros Rankings — load_ff_rankings","text":"Accesses DynastyProcess.com's repository latest FP expert consensus rankings - updated weekly basis.","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_ff_rankings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Load Latest FantasyPros Rankings — load_ff_rankings","text":"","code":"load_ff_rankings(type = c(\"draft\", \"week\", \"all\"))"},{"path":"https://nflreadr.nflverse.com/reference/load_ff_rankings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Load Latest FantasyPros Rankings — load_ff_rankings","text":"type one \"draft\" (preseason), \"week\" (week, inseason), \"\" (full archive)","code":""},{"path":"https://nflreadr.nflverse.com/reference/load_ff_rankings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Load Latest FantasyPros Rankings — load_ff_rankings","text":"dataframe expert consensus rankings","code":""},{"path":[]},{"path":"https://nflreadr.nflverse.com/reference/load_ff_rankings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Load Latest FantasyPros Rankings — load_ff_rankings","text":"","code":"# \\donttest{ try({ # prevents cran errors load_ff_rankings() }) #> ── nflverse FP expert rankings ───────────────────────────────────────────────── #> ℹ Data updated: 2023-08-07 12:09:49 UTC #> # A tibble: 6,493 × 25 #> fp_page page_type ecr_type player id pos team ecr sd best worst #> #> 1 /nfl/ran… best-dst bp San F… 8270 DST SF 2 1.41 1 4 #> 2 /nfl/ran… best-dst bp Dalla… 8080 DST DAL 2 0.82 1 3 #> 3 /nfl/ran… best-dst bp Buffa… 8030 DST BUF 3.67 1.7 2 6 #> 4 /nfl/ran… best-dst bp Phila… 8230 DST PHI 5.33 1.89 4 8 #> 5 /nfl/ran… best-dst bp Denve… 8090 DST DEN 6.67 1.25 5 8 #> 6 /nfl/ran… best-dst bp New Y… 8210 DST NYJ 7.33 3.86 2 11 #> 7 /nfl/ran… best-dst bp New E… 8180 DST NE 7.67 3.77 5 13 #> 8 /nfl/ran… best-dst bp Balti… 8020 DST BAL 8 1.63 6 10 #> 9 /nfl/ran… best-dst bp New O… 8190 DST NO 9 4.55 3 14 #> 10 /nfl/ran… best-dst bp Kansa… 8150 DST KC 10.3 1.89 9 13 #> # ℹ 6,483 more rows #> # ℹ 14 more variables: sportsdata_id , player_filename , #> # yahoo_id , cbs_id , player_owned_avg , #> # player_owned_espn , player_owned_yahoo , player_image_url , #> # player_square_image_url , rank_delta , bye