Skip to contents

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

Value

a tibble of season-level injury report data.

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) ─────────────────────────────────────────────────────
#> # A tibble: 84 × 23
#>    season season_type game_week    team_abb player_id name_short  rank qbr_total
#>     <dbl> <chr>       <chr>        <chr>    <chr>     <chr>      <dbl>     <dbl>
#>  1   2020 Regular     Season Total GB       8439      A. Rodgers     1      84.3
#>  2   2020 Regular     Season Total KC       3139477   P. Mahomes     2      82.9
#>  3   2020 Regular     Season Total BUF      3918298   J. Allen       3      81.7
#>  4   2020 Regular     Season Total TEN      14876     R. Tanneh…     4      78.3
#>  5   2020 Regular     Season Total MIA      8664      R. Fitzpa…     5      76.8
#>  6   2020 Regular     Season Total NO       2580      D. Brees       6      74.6
#>  7   2020 Regular     Season Total BAL      3916387   L. Jackson     7      73.7
#>  8   2020 Regular     Season Total SEA      14881     R. Wilson      8      73.5
#>  9   2020 Regular     Season Total TB       2330      T. Brady       9      72.5
#> 10   2020 Regular     Season Total CLE      3052587   B. Mayfie…    10      72.2
#> # … with 74 more rows, and 15 more variables: pts_added <dbl>, qb_plays <dbl>,
#> #   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>
# }