diff --git a/articles/beginners_guide.html b/articles/beginners_guide.html index dfcf7788..cb5dd9d4 100644 --- a/articles/beginners_guide.html +++ b/articles/beginners_guide.html @@ -668,7 +668,7 @@
load_teams()
#> ── nflverse team graphics ──────────────────────────────────────────────────────
-#> ℹ Data updated: 2024-08-12 18:41:37 UTC
+#> ℹ Data updated: 2024-08-12 19:09: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-08-12 18:42:06"
+#> - attr(*, "nflverse_timestamp")= POSIXct[1:1], format: "2024-08-12 19:09: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.088 sec elapsed
+#> loading all games from 2009: 2.097 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.9012 ──
-#> ℹ 18:44:02 | Can't find the data table "nflfastR_pbp"
+#> ℹ 19:11:36 | Can't find the data table "nflfastR_pbp"
#> in your database. Will load the play by play data from
#> scratch.
-#> • 18:44:02 | Starting download of 25 seasons between 1999 and 2023...
-#> • 18:45:21 | Checking for missing completed games...
-#> ℹ 18:45:22 | You have 6703 games and are missing 0.
-#> ✔ 18:45:23 | Database update completed
-#> ℹ 18:45:23 | Path to your db: ./pbp_db
+#> • 19:11:36 | Starting download of 25 seasons between 1999 and 2023...
+#> • 19:12:53 | Checking for missing completed games...
+#> ℹ 19:12:55 | You have 6703 games and are missing 0.
+#> ✔ 19:12:55 | Database update completed
+#> ℹ 19:12:55 | 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.9012 ──
-#> • 18:45:23 | Checking for missing completed games...
-#> ℹ 18:45:23 | You have 6703 games and are missing 0.
-#> ✔ 18:45:24 | Database update completed
-#> ℹ 18:45:24 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
+#> • 19:12:55 | Checking for missing completed games...
+#> ℹ 19:12:56 | You have 6703 games and are missing 0.
+#> ✔ 19:12:57 | Database update completed
+#> ℹ 19:12:57 | 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.9012 ──
-#> • 18:45:24 | Purging season 2020 from the data table "nflfastR_pbp" in your
+#> • 19:12:57 | Purging season 2020 from the data table "nflfastR_pbp" in your
#> connected database...
-#> • 18:45:25 | Starting download of the 1 season 2020
-#> • 18:45:28 | Checking for missing completed games...
-#> ℹ 18:45:28 | You have 6703 games and are missing 0.
-#> ✔ 18:45:29 | Database update completed
-#> ℹ 18:45:29 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
+#> • 19:12:58 | Starting download of the 1 season 2020
+#> • 19:13:01 | Checking for missing completed games...
+#> ℹ 19:13:01 | You have 6703 games and are missing 0.
+#> ✔ 19:13:02 | Database update completed
+#> ℹ 19:13:02 | Path to your db: /home/runner/work/nflfastR/nflfastR/vignettes/pbp_db
#> ── DONE ────────────────────────────────────────────────────────────────────────