From a859919742c7f82de5f74123a1917c20cc19de30 Mon Sep 17 00:00:00 2001 From: mrcaseb <38586519+mrcaseb@users.noreply.github.com> Date: Wed, 27 Nov 2024 07:34:12 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20nflverse?= =?UTF-8?q?/nflfastR@70cc022a655fcef5b18edc024710e1cde132bde5=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- articles/beginners_guide.html | 10 ++-- articles/nflfastR.html | 72 +++++++++++------------ pkgdown.yml | 2 +- reference/build_nflfastR_pbp.html | 84 +++++++++++++-------------- reference/decode_player_ids.html | 4 +- reference/fast_scraper.html | 48 +++++++-------- reference/fast_scraper_schedules.html | 2 +- reference/report.html | 2 +- search.json | 2 +- 9 files changed, 113 insertions(+), 113 deletions(-) diff --git a/articles/beginners_guide.html b/articles/beginners_guide.html index 2e284cbf..089f469b 100644 --- a/articles/beginners_guide.html +++ b/articles/beginners_guide.html @@ -668,7 +668,7 @@
load_teams()
#> ── nflverse team graphics ──────────────────────────────────────────────────────
-#> ℹ Data updated: 2024-11-27 07:21:38 UTC
+#> ℹ Data updated: 2024-11-27 07:30:10 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>
@@ -918,7 +918,7 @@ Get team wins each season#> $ stadium_id : chr [1:6978] "ATL00" "CHI98" "CLE00" "GNB00" ...
#> $ stadium : chr [1:6978] "Georgia Dome" "Soldier Field" "Cleveland Browns Stadium" "Lambeau Field" ...
#> - attr(*, "nflverse_type")= chr "games and schedules"
-#> - attr(*, "nflverse_timestamp")= chr "2024-11-27 02:22:07 EST"
+#> - attr(*, "nflverse_timestamp")= chr "2024-11-27 02:30:38 EST"
To start, we want to create a dataframe where each row is a team-season observation, listing how many games they won. There are multiple ways to do this, but I’m going to just take the home and away @@ -931,7 +931,7 @@
In most cases, however, it is not necessary to use this function for
individual games, because nflfastR provides both a data
@@ -680,14 +680,14 @@ This created a database in the current directory called
If it’s partway through a season and you want to re-build a season to
allow for data corrections from the NFL to propagate into your database,
@@ -710,13 +710,13 @@ Build database
nflfastR::update_db()
#> ── Update nflfastR Play-by-Play Database ───────────── nflfastR version 5.0.0 ──
-#> ℹ 07:24:00 | Can't find the data table "nflfastR_pbp"
+#> ℹ 07:32:18 | Can't find the data table "nflfastR_pbp"
#> in your database. Will load the play by play data from
#> scratch.
-#> • 07:24:00 | Starting download of 26 seasons between 1999 and 2024...
-#> • 07:25:25 | Checking for missing completed games...
-#> ℹ 07:25:26 | You have 6882 games and are missing 0.
-#> ✔ 07:25:27 | Database update completed
-#> ℹ 07:25:27 | Path to your db: ./pbp_db
+#> • 07:32:18 | Starting download of 26 seasons between 1999 and 2024...
+#> • 07:33:35 | Checking for missing completed games...
+#> ℹ 07:33:37 | You have 6882 games and are missing 0.
+#> ✔ 07:33:37 | Database update completed
+#> ℹ 07:33:37 | Path to your db: ./pbp_db
#> ── DONE ────────────────────────────────────────────────────────────────────────
pbp_db
.Build database
nflfastR::update_db()
#> ── Update nflfastR Play-by-Play Database ───────────── nflfastR version 5.0.0 ──
-#> • 07:25:27 | Checking for missing completed games...
-#> ℹ 07:25:28 | You have 6882 games and are missing 0.
-#> ✔ 07:25:28 | Database update completed
-#> ℹ 07:25:28 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
+#> • 07:33:37 | Checking for missing completed games...
+#> ℹ 07:33:38 | You have 6882 games and are missing 0.
+#> ✔ 07:33:39 | Database update completed
+#> ℹ 07:33:39 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
#> ── DONE ────────────────────────────────────────────────────────────────────────
Build database
nflfastR::update_db(force_rebuild = 2020)
#> ── Update nflfastR Play-by-Play Database ───────────── nflfastR version 5.0.0 ──
-#> • 07:25:28 | Purging season 2020 from the data table "nflfastR_pbp" in your
+#> • 07:33:39 | Purging season 2020 from the data table "nflfastR_pbp" in your
#> connected database...
-#> • 07:25:30 | Starting download of the 1 season 2020
-#> • 07:25:33 | Checking for missing completed games...
-#> ℹ 07:25:34 | You have 6882 games and are missing 0.
-#> ✔ 07:25:34 | Database update completed
-#> ℹ 07:25:34 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
+#> • 07:33:40 | Starting download of the 1 season 2020
+#> • 07:33:43 | Checking for missing completed games...
+#> ℹ 07:33:44 | You have 6882 games and are missing 0.
+#> ✔ 07:33:44 | Database update completed
+#> ℹ 07:33:44 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
#> ── DONE ────────────────────────────────────────────────────────────────────────
Examplesbuild_nflfastR_pbp(c("2018_21_NE_LA", "2019_21_SF_KC"))
})
#> ── Build nflfastR Play-by-Play Data ────────────────── nflfastR version 5.0.0 ──
-#> • 07:19:30 | Start download of 2 games...
+#> • 07:28:09 | Start download of 2 games...
#> ℹ It is recommended to use parallel processing when trying to load multiple games.Please consider running `future::plan("multisession")`! Will go on sequentially...
-#> ✔ 07:19:33 | Download finished. Adding variables...
-#> ✔ 07:19:33 | added game variables
-#> ✔ 07:19:33 | added nflscrapR variables
-#> ✔ 07:19:34 | added ep variables
-#> ✔ 07:19:34 | added air_yac_ep variables
-#> ✔ 07:19:34 | added wp variables
-#> ✔ 07:19:34 | added air_yac_wp variables
-#> ✔ 07:19:34 | added cp and cpoe
-#> ✔ 07:19:34 | added fixed drive variables
-#> ✔ 07:19:35 | added series variables
-#> • 07:19:35 | Cleaning up play-by-play...
-#> ✔ 07:19:35 | Cleaning completed
-#> ✔ 07:19:35 | added qb_epa
-#> • 07:19:35 | Computing xyac...
-#> ✔ 07:19:37 | added xyac variables
-#> • 07:19:37 | Computing xpass...
-#> ✔ 07:19:37 | added xpass and pass_oe
-#> • 07:19:37 | Decode player ids...
-#> ✔ 07:19:38 | Decoding of player ids completed
+#> ✔ 07:28:11 | Download finished. Adding variables...
+#> ✔ 07:28:12 | added game variables
+#> ✔ 07:28:12 | added nflscrapR variables
+#> ✔ 07:28:13 | added ep variables
+#> ✔ 07:28:13 | added air_yac_ep variables
+#> ✔ 07:28:13 | added wp variables
+#> ✔ 07:28:13 | added air_yac_wp variables
+#> ✔ 07:28:13 | added cp and cpoe
+#> ✔ 07:28:13 | added fixed drive variables
+#> ✔ 07:28:13 | added series variables
+#> • 07:28:13 | Cleaning up play-by-play...
+#> ✔ 07:28:14 | Cleaning completed
+#> ✔ 07:28:14 | added qb_epa
+#> • 07:28:14 | Computing xyac...
+#> ✔ 07:28:16 | added xyac variables
+#> • 07:28:16 | Computing xpass...
+#> ✔ 07:28:16 | added xpass and pass_oe
+#> • 07:28:16 | Decode player ids...
+#> ✔ 07:28:17 | Decoding of player ids completed
#> ── DONE ────────────────────────────────────────────────────────────────────────
#> ── nflverse play by play ───────────────────────────────────────────────────────
-#> ℹ Data updated: 2024-11-27 07:19:38 UTC
+#> ℹ Data updated: 2024-11-27 07:28:17 UTC
#> # A tibble: 349 × 372
#> play_id game_id old_game_id home_team away_team season_type week posteam
#> <dbl> <chr> <chr> <chr> <chr> <chr> <int> <chr>
@@ -211,30 +211,30 @@
Examples build_nflfastR_pbp()
})
#> ── Build nflfastR Play-by-Play Data ────────────────── nflfastR version 5.0.0 ──
-#> • 07:19:38 | Start download of 3 games...
+#> • 07:28:17 | Start download of 3 games...
#> ℹ It is recommended to use parallel processing when trying to load multiple games.Please consider running `future::plan("multisession")`! Will go on sequentially...
-#> ✔ 07:19:41 | Download finished. Adding variables...
-#> ✔ 07:19:41 | added game variables
-#> ✔ 07:19:42 | added nflscrapR variables
-#> ✔ 07:19:42 | added ep variables
-#> ✔ 07:19:42 | added air_yac_ep variables
-#> ✔ 07:19:42 | added wp variables
-#> ✔ 07:19:42 | added air_yac_wp variables
-#> ✔ 07:19:42 | added cp and cpoe
-#> ✔ 07:19:42 | added fixed drive variables
-#> ✔ 07:19:43 | added series variables
-#> • 07:19:43 | Cleaning up play-by-play...
-#> ✔ 07:19:43 | Cleaning completed
-#> ✔ 07:19:43 | added qb_epa
-#> • 07:19:43 | Computing xyac...
-#> ✔ 07:19:44 | added xyac variables
-#> • 07:19:44 | Computing xpass...
-#> ✔ 07:19:44 | added xpass and pass_oe
-#> • 07:19:44 | Decode player ids...
-#> ✔ 07:19:44 | Decoding of player ids completed
+#> ✔ 07:28:20 | Download finished. Adding variables...
+#> ✔ 07:28:20 | added game variables
+#> ✔ 07:28:20 | added nflscrapR variables
+#> ✔ 07:28:20 | added ep variables
+#> ✔ 07:28:20 | added air_yac_ep variables
+#> ✔ 07:28:21 | added wp variables
+#> ✔ 07:28:21 | added air_yac_wp variables
+#> ✔ 07:28:21 | added cp and cpoe
+#> ✔ 07:28:21 | added fixed drive variables
+#> ✔ 07:28:21 | added series variables
+#> • 07:28:21 | Cleaning up play-by-play...
+#> ✔ 07:28:21 | Cleaning completed
+#> ✔ 07:28:21 | added qb_epa
+#> • 07:28:21 | Computing xyac...
+#> ✔ 07:28:22 | added xyac variables
+#> • 07:28:22 | Computing xpass...
+#> ✔ 07:28:22 | added xpass and pass_oe
+#> • 07:28:22 | Decode player ids...
+#> ✔ 07:28:22 | Decoding of player ids completed
#> ── DONE ────────────────────────────────────────────────────────────────────────
#> ── nflverse play by play ───────────────────────────────────────────────────────
-#> ℹ Data updated: 2024-11-27 07:19:44 UTC
+#> ℹ Data updated: 2024-11-27 07:28:22 UTC
#> # A tibble: 539 × 372
#> play_id game_id old_game_id home_team away_team season_type week posteam
#> <dbl> <chr> <chr> <chr> <chr> <chr> <int> <chr>
diff --git a/reference/decode_player_ids.html b/reference/decode_player_ids.html
index 710b5ac9..fec260d6 100644
--- a/reference/decode_player_ids.html
+++ b/reference/decode_player_ids.html
@@ -135,8 +135,8 @@
Examples "32013030-2d30-3032-3739-3434d4d3846d"
)
))
-#> • 07:20:41 | Decode player ids...
-#> ✔ 07:20:41 | Decoding of player ids completed
+#> • 07:29:17 | Decode player ids...
+#> ✔ 07:29:17 | Decoding of player ids completed
#> name id
#> 1 P.Mahomes 00-0033873
#> 2 B.Baldwin <NA>
diff --git a/reference/fast_scraper.html b/reference/fast_scraper.html
index 70af7179..df5eab88 100644
--- a/reference/fast_scraper.html
+++ b/reference/fast_scraper.html
@@ -1163,19 +1163,19 @@
Examplesfast_scraper(c("2019_01_GB_CHI", "2013_21_SEA_DEN"))
})
#> ℹ It is recommended to use parallel processing when trying to load multiple games.Please consider running `future::plan("multisession")`! Will go on sequentially...
-#> ✔ 07:20:43 | Download finished. Adding variables...
-#> ✔ 07:20:43 | added game variables
-#> ✔ 07:20:43 | added nflscrapR variables
-#> ✔ 07:20:44 | added ep variables
-#> ✔ 07:20:44 | added air_yac_ep variables
-#> ✔ 07:20:44 | added wp variables
-#> ✔ 07:20:44 | added air_yac_wp variables
-#> ✔ 07:20:44 | added cp and cpoe
-#> ✔ 07:20:44 | added fixed drive variables
-#> ✔ 07:20:44 | added series variables
-#> ✔ 07:20:44 | Procedure completed.
+#> ✔ 07:29:19 | Download finished. Adding variables...
+#> ✔ 07:29:19 | added game variables
+#> ✔ 07:29:20 | added nflscrapR variables
+#> ✔ 07:29:20 | added ep variables
+#> ✔ 07:29:20 | added air_yac_ep variables
+#> ✔ 07:29:20 | added wp variables
+#> ✔ 07:29:20 | added air_yac_wp variables
+#> ✔ 07:29:20 | added cp and cpoe
+#> ✔ 07:29:20 | added fixed drive variables
+#> ✔ 07:29:20 | added series variables
+#> ✔ 07:29:20 | Procedure completed.
#> ── nflverse play by play ───────────────────────────────────────────────────────
-#> ℹ Data updated: 2024-11-27 07:20:44 UTC
+#> ℹ Data updated: 2024-11-27 07:29:20 UTC
#> # A tibble: 337 × 339
#> play_id game_id old_game_id home_team away_team season_type week posteam
#> <dbl> <chr> <chr> <chr> <chr> <chr> <int> <chr>
@@ -1207,19 +1207,19 @@
Examples fast_scraper()
})
#> ℹ It is recommended to use parallel processing when trying to load multiple games.Please consider running `future::plan("multisession")`! Will go on sequentially...
-#> ✔ 07:20:48 | Download finished. Adding variables...
-#> ✔ 07:20:48 | added game variables
-#> ✔ 07:20:48 | added nflscrapR variables
-#> ✔ 07:20:48 | added ep variables
-#> ✔ 07:20:48 | added air_yac_ep variables
-#> ✔ 07:20:49 | added wp variables
-#> ✔ 07:20:49 | added air_yac_wp variables
-#> ✔ 07:20:49 | added cp and cpoe
-#> ✔ 07:20:49 | added fixed drive variables
-#> ✔ 07:20:49 | added series variables
-#> ✔ 07:20:49 | Procedure completed.
+#> ✔ 07:29:24 | Download finished. Adding variables...
+#> ✔ 07:29:24 | added game variables
+#> ✔ 07:29:24 | added nflscrapR variables
+#> ✔ 07:29:24 | added ep variables
+#> ✔ 07:29:24 | added air_yac_ep variables
+#> ✔ 07:29:25 | added wp variables
+#> ✔ 07:29:25 | added air_yac_wp variables
+#> ✔ 07:29:25 | added cp and cpoe
+#> ✔ 07:29:25 | added fixed drive variables
+#> ✔ 07:29:25 | added series variables
+#> ✔ 07:29:25 | Procedure completed.
#> ── nflverse play by play ───────────────────────────────────────────────────────
-#> ℹ Data updated: 2024-11-27 07:20:49 UTC
+#> ℹ Data updated: 2024-11-27 07:29:25 UTC
#> # A tibble: 539 × 339
#> play_id game_id old_game_id home_team away_team season_type week posteam
#> <dbl> <chr> <chr> <chr> <chr> <chr> <int> <chr>
diff --git a/reference/fast_scraper_schedules.html b/reference/fast_scraper_schedules.html
index 5eb2662a..ec76d1cf 100644
--- a/reference/fast_scraper_schedules.html
+++ b/reference/fast_scraper_schedules.html
@@ -103,7 +103,7 @@
Examplesfast_scraper_schedules(2015:2018)
})
#> ── nflverse games and schedules ────────────────────────────────────────────────
-#> ℹ Data updated: 2024-11-27 07:20:52 UTC
+#> ℹ Data updated: 2024-11-27 07:29:27 UTC
#> # A tibble: 1,068 × 46
#> 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/report.html b/reference/report.html
index a0795005..f9beddf0 100644
--- a/reference/report.html
+++ b/reference/report.html
@@ -119,7 +119,7 @@
Examples#> • R version 4.4.2 (2024-10-31) • Running under: Ubuntu 22.04.5 LTS
#> ── Package Status ──────────────────────────────────────────────────────────────
#> package installed cran dev behind
-#> 1 nflfastR 5.0.0 5.0.0 4.6.1.9020
+#> 1 nflfastR 5.0.0 5.0.0 5.0.0
#> 2 nflplotR 1.4.0.9001 1.4.0 1.4.0.9001
#> 3 nflreadr 1.4.1.05 1.4.1 1.4.1.05
#> 4 nflseedR 1.2.0 1.2.0 1.2.0.9901 dev
diff --git a/search.json b/search.json
index 454ed0cc..63f740d0 100644
--- a/search.json
+++ b/search.json
@@ -1 +1 @@
-[{"path":"https://www.nflfastr.com/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2020 Sebastian Carl; Ben Baldwin 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://www.nflfastr.com/articles/beginners_guide.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"A beginner's guide to nflfastR","text":"following guide assume R installed. also highly recommend working RStudio. need help getting installed unfamiliar RStudio laid , please see section Lee Sharpe’s guide. quick word ’re new programming: happening R. Obviously, need install R computer . Make sure save ’re script (RStudio, File –> New File –> R script) can save work run multiple lines code . run code script, highlight want, press control + enter press Run button top editor (see Lee’s guide). don’t highlight anything press control + enter, currently selected line run. go R journey, might get stuck google bunch things, ’s totally okay normal. ’s got started!","code":""},{"path":"https://www.nflfastr.com/articles/beginners_guide.html","id":"setup","dir":"Articles","previous_headings":"","what":"Setup","title":"A beginner's guide to nflfastR","text":"First, need install magic packages. need run step given computer. can just type RStudio console (look Console pane RStudio) directly since ’re never going .","code":""},{"path":"https://www.nflfastr.com/articles/beginners_guide.html","id":"install-packages","dir":"Articles","previous_headings":"Setup","what":"Install packages","title":"A beginner's guide to nflfastR","text":"","code":"install.packages(\"tidyverse\", type = \"binary\") install.packages(\"ggrepel\", type = \"binary\") install.packages(\"nflreadr\", type = \"binary\") install.packages(\"nflplotR\", type = \"binary\")"},{"path":"https://www.nflfastr.com/articles/beginners_guide.html","id":"load-packages","dir":"Articles","previous_headings":"Setup","what":"Load packages","title":"A beginner's guide to nflfastR","text":"Okay, now ’s stuff ’re going want start putting R script. following loads tidyverse, contains lot helper functions working data ggrepel making figures, along nflreadr (allows one quickly download nflfastR data, along lot data). Finally, nflplotR makes plotting easier. one optional makes R prefer display numbers scientific notation, find annoying:","code":"library(tidyverse) library(ggrepel) library(nflreadr) library(nflplotR) options(scipen = 9999)"},{"path":"https://www.nflfastr.com/articles/beginners_guide.html","id":"load-data","dir":"Articles","previous_headings":"Setup","what":"Load data","title":"A beginner's guide to nflfastR","text":"load full play play 2019 season (including playoffs). ’ll get get seasons later. Note downloading pre-cleaned data nflfastR data repository using load_pbp() function included nflreadr, much faster building pbp scratch.","code":"data <- load_pbp(2019)"},{"path":[]},{"path":"https://www.nflfastr.com/articles/beginners_guide.html","id":"dimensions","dir":"Articles","previous_headings":"Basics: how to look at your data","what":"Dimensions","title":"A beginner's guide to nflfastR","text":"moving forward, ways get sense ’s dataframe. can check dimensions data, tells us 47258 rows (.e., plays) data 372 columns (variables): str displays structure dataframe: , ’ve added [1:10], selects first 10 columns, otherwise list extremely long (remember 372 columns!). Normally, just type str(data). can similarly take glimpse data: ’m showing first 10 columns. usual command glimpse(data).","code":"dim(data) #> [1] 47258 372 str(data[1:10]) #> nflvrs_d [47,258 × 10] (S3: nflverse_data/tbl_df/tbl/data.table/data.frame) #> $ play_id : num [1:47258] 1 36 51 79 100 121 148 185 214 239 ... #> $ game_id : chr [1:47258] \"2019_01_ATL_MIN\" \"2019_01_ATL_MIN\" \"2019_01_ATL_MIN\" \"2019_01_ATL_MIN\" ... #> $ old_game_id : chr [1:47258] \"2019090804\" \"2019090804\" \"2019090804\" \"2019090804\" ... #> $ home_team : chr [1:47258] \"MIN\" \"MIN\" \"MIN\" \"MIN\" ... #> $ away_team : chr [1:47258] \"ATL\" \"ATL\" \"ATL\" \"ATL\" ... #> $ season_type : chr [1:47258] \"REG\" \"REG\" \"REG\" \"REG\" ... #> $ week : int [1:47258] 1 1 1 1 1 1 1 1 1 1 ... #> $ posteam : chr [1:47258] NA \"ATL\" \"ATL\" \"ATL\" ... #> $ posteam_type: chr [1:47258] NA \"away\" \"away\" \"away\" ... #> $ defteam : chr [1:47258] NA \"MIN\" \"MIN\" \"MIN\" ... #> - attr(*, \"nflverse_timestamp\")= POSIXct[1:1], format: \"2024-08-13 15:38:55\" #> - attr(*, \"nflverse_type\")= chr \"play by play data\" #> - attr(*, \"nflfastR_version\")=Classes 'package_version', 'numeric_version' hidden list of 1 #> ..$ : int [1:4] 4 6 1 9013 glimpse(data[1:10]) #> Rows: 47,258 #> Columns: 10 #> $ play_id