Load ESPN's QBR
Usage
load_espn_qbr(
league = c("nfl", "college"),
seasons = most_recent_season(),
summary_type = c("season", "weekly")
)
Arguments
- league
One of "nfl" or "college", defaults to "nfl"
- seasons
a numeric vector of seasons to return, data available since 2006. Defaults to latest season available. TRUE will select all seasons.
- summary_type
One of "season" or "weekly", defaults to season
See also
https://nflreadr.nflverse.com/articles/dictionary_espn_qbr.html for a web version of the dictionary
dictionary_espn_qbr
for the data dictionary as bundled within the package
Issues with this data should be filed here: https://github.com/nflverse/espnscrapeR-data
Examples
# \donttest{
load_espn_qbr("nfl",2020)
#> ── nflverse QBR (via ESPN/espnscrapeR) ─────────────────────────────────────────
#> ℹ Data updated: 2023-03-12 16:26:55 UTC
#> # A tibble: 84 × 23
#> season season…¹ game_…² team_…³ playe…⁴ name_…⁵ rank qbr_t…⁶ pts_a…⁷ qb_pl…⁸
#> <dbl> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 2020 Regular Season… GB 8439 A. Rod… 1 84.3 77.7 608
#> 2 2020 Regular Season… KC 3139477 P. Mah… 2 82.9 86.3 710
#> 3 2020 Regular Season… BUF 3918298 J. All… 3 81.7 79.1 729
#> 4 2020 Regular Season… TEN 14876 R. Tan… 4 78.3 56.9 594
#> 5 2020 Regular Season… MIA 8664 R. Fit… 5 76.8 29.6 324
#> 6 2020 Regular Season… NO 2580 D. Bre… 6 74.6 36.4 428
#> 7 2020 Regular Season… BAL 3916387 L. Jac… 7 73.7 44.7 585
#> 8 2020 Regular Season… SEA 14881 R. Wil… 8 73.5 48.3 716
#> 9 2020 Regular Season… TB 2330 T. Bra… 9 72.5 49.2 681
#> 10 2020 Regular Season… CLE 3052587 B. May… 10 72.2 39.2 597
#> # … with 74 more rows, 13 more variables: epa_total <dbl>, pass <dbl>,
#> # run <dbl>, exp_sack <dbl>, penalty <dbl>, qbr_raw <dbl>, sack <dbl>,
#> # name_first <chr>, name_last <chr>, name_display <chr>, headshot_href <chr>,
#> # team <chr>, qualified <lgl>, and abbreviated variable names ¹season_type,
#> # ²game_week, ³team_abb, ⁴player_id, ⁵name_short, ⁶qbr_total, ⁷pts_added,
#> # ⁸qb_plays
# }