diff --git a/articles/beginners_guide.html b/articles/beginners_guide.html index 3769e135..a2d1aa67 100644 --- a/articles/beginners_guide.html +++ b/articles/beginners_guide.html @@ -668,7 +668,7 @@
load_teams()
#> ── nflverse team graphics ──────────────────────────────────────────────────────
-#> ℹ Data updated: 2024-07-12 15:41:43 UTC
+#> ℹ Data updated: 2024-07-12 18:12: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")= POSIXct[1:1], format: "2024-07-12 15:42:12"
+#> - attr(*, "nflverse_timestamp")= POSIXct[1:1], format: "2024-07-12 18:12:39"
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 repository and @@ -359,7 +359,7 @@
tictoc::tic("loading all games from 2009")
games_2009 <- nflfastR::load_pbp(2009) %>% dplyr::filter(season_type == "REG")
tictoc::toc()
-#> loading all games from 2009: 2.612 sec elapsed
+#> loading all games from 2009: 2.357 sec elapsed
games_2009 %>%
dplyr::filter(!is.na(cpoe)) %>%
dplyr::group_by(passer_player_name) %>%
@@ -865,14 +865,14 @@ Build database
nflfastR::update_db()
#> ── Update nflfastR Play-by-Play Database ──────── nflfastR version 4.6.1.9010 ──
-#> ℹ 15:44:26 | Can't find the data table "nflfastR_pbp"
+#> ℹ 18:14:51 | Can't find the data table "nflfastR_pbp"
#> in your database. Will load the play by play data from
#> scratch.
-#> • 15:44:26 | Starting download of 25 seasons between 1999 and 2023...
-#> • 15:45:57 | Checking for missing completed games...
-#> ℹ 15:45:59 | You have 6703 games and are missing 0.
-#> ✔ 15:46:00 | Database update completed
-#> ℹ 15:46:00 | Path to your db: ./pbp_db
+#> • 18:14:51 | Starting download of 25 seasons between 1999 and 2023...
+#> • 18:16:22 | Checking for missing completed games...
+#> ℹ 18:16:23 | You have 6703 games and are missing 0.
+#> ✔ 18:16:24 | Database update completed
+#> ℹ 18:16:24 | Path to your db: ./pbp_db
#> ── DONE ────────────────────────────────────────────────────────────────────────
This created a database in the current directory called
pbp_db
.
nflfastR::update_db()
#> ── Update nflfastR Play-by-Play Database ──────── nflfastR version 4.6.1.9010 ──
-#> • 15:46:00 | Checking for missing completed games...
-#> ℹ 15:46:00 | You have 6703 games and are missing 0.
-#> ✔ 15:46:01 | Database update completed
-#> ℹ 15:46:01 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
+#> • 18:16:24 | Checking for missing completed games...
+#> ℹ 18:16:25 | You have 6703 games and are missing 0.
+#> ✔ 18:16:25 | Database update completed
+#> ℹ 18:16:25 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
#> ── DONE ────────────────────────────────────────────────────────────────────────
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, @@ -895,13 +895,13 @@
nflfastR::update_db(force_rebuild = 2020)
#> ── Update nflfastR Play-by-Play Database ──────── nflfastR version 4.6.1.9010 ──
-#> • 15:46:01 | Purging season 2020 from the data table "nflfastR_pbp" in your
+#> • 18:16:25 | Purging season 2020 from the data table "nflfastR_pbp" in your
#> connected database...
-#> • 15:46:02 | Starting download of the 1 season 2020
-#> • 15:46:05 | Checking for missing completed games...
-#> ℹ 15:46:06 | You have 6703 games and are missing 0.
-#> ✔ 15:46:07 | Database update completed
-#> ℹ 15:46:07 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
+#> • 18:16:26 | Starting download of the 1 season 2020
+#> • 18:16:30 | Checking for missing completed games...
+#> ℹ 18:16:30 | You have 6703 games and are missing 0.
+#> ✔ 18:16:31 | Database update completed
+#> ℹ 18:16:31 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
#> ── DONE ────────────────────────────────────────────────────────────────────────