diff --git a/articles/beginners_guide.html b/articles/beginners_guide.html index 66d11836..dbeb1d79 100644 --- a/articles/beginners_guide.html +++ b/articles/beginners_guide.html @@ -719,7 +719,7 @@
load_teams()
#> ── nflverse team graphics ──────────────────────────────────────────────────────
-#> ℹ Data updated: 2024-03-11 10:54:38 UTC
+#> ℹ Data updated: 2024-03-11 11:08:30 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>
@@ -969,7 +969,7 @@ Get team wins each season#> $ stadium_id : chr [1:6706] "ATL00" "CHI98" "CLE00" "GNB00" ...
#> $ stadium : chr [1:6706] "Georgia Dome" "Soldier Field" "Cleveland Browns Stadium" "Lambeau Field" ...
#> - attr(*, "nflverse_type")= chr "games and schedules"
-#> - attr(*, "nflverse_timestamp")= POSIXct[1:1], format: "2024-03-11 10:55:05"
+#> - attr(*, "nflverse_timestamp")= POSIXct[1:1], format: "2024-03-11 11:08:58"
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 @@ -982,7 +982,7 @@
In most cases, however, it is not necessary to use this function for individual games, because nflfastR provides both a data repository and @@ -459,7 +459,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: 1.888 sec elapsed
+#> loading all games from 2009: 2.278 sec elapsed
games_2009 %>%
dplyr::filter(!is.na(cpoe)) %>%
dplyr::group_by(passer_player_name) %>%
@@ -965,14 +965,14 @@ Build database
nflfastR::update_db()
#> ── Update nflfastR Play-by-Play Database ──────── nflfastR version 4.6.1.9007 ──
-#> ℹ 10:56:56 | Can't find the data table "nflfastR_pbp"
+#> ℹ 11:11:05 | Can't find the data table "nflfastR_pbp"
#> in your database. Will load the play by play data from
#> scratch.
-#> • 10:56:56 | Starting download of 25 seasons between 1999 and 2023...
-#> • 10:58:10 | Checking for missing completed games...
-#> ℹ 10:58:12 | You have 6703 games and are missing 0.
-#> ✔ 10:58:12 | Database update completed
-#> ℹ 10:58:12 | Path to your db: ./pbp_db
+#> • 11:11:05 | Starting download of 25 seasons between 1999 and 2023...
+#> • 11:12:27 | Checking for missing completed games...
+#> ℹ 11:12:28 | You have 6703 games and are missing 0.
+#> ✔ 11:12:29 | Database update completed
+#> ℹ 11:12:29 | 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.9007 ──
-#> • 10:58:12 | Checking for missing completed games...
-#> ℹ 10:58:13 | You have 6703 games and are missing 0.
-#> ✔ 10:58:13 | Database update completed
-#> ℹ 10:58:13 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
+#> • 11:12:29 | Checking for missing completed games...
+#> ℹ 11:12:29 | You have 6703 games and are missing 0.
+#> ✔ 11:12:30 | Database update completed
+#> ℹ 11:12:30 | 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, @@ -995,13 +995,13 @@
nflfastR::update_db(force_rebuild = 2020)
#> ── Update nflfastR Play-by-Play Database ──────── nflfastR version 4.6.1.9007 ──
-#> • 10:58:13 | Purging season 2020 from the data table "nflfastR_pbp" in your
+#> • 11:12:30 | Purging season 2020 from the data table "nflfastR_pbp" in your
#> connected database...
-#> • 10:58:14 | Starting download of the 1 season 2020
-#> • 10:58:17 | Checking for missing completed games...
-#> ℹ 10:58:18 | You have 6703 games and are missing 0.
-#> ✔ 10:58:18 | Database update completed
-#> ℹ 10:58:18 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
+#> • 11:12:31 | Starting download of the 1 season 2020
+#> • 11:12:34 | Checking for missing completed games...
+#> ℹ 11:12:35 | You have 6703 games and are missing 0.
+#> ✔ 11:12:35 | Database update completed
+#> ℹ 11:12:35 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
#> ── DONE ────────────────────────────────────────────────────────────────────────