Loads player level season stats provided by Pro Football Reference starting with the 2019 season.
Arguments
- seasons
a numeric vector specifying what seasons to return, if
TRUE
returns all available data
See also
https://nflreadr.nflverse.com/articles/dictionary_pfr_passing.html for the web data dictionary
dictionary_pfr_passing
for the data dictionary as bundled within the package
Issues with this data should be filed here: https://github.com/nflverse/pfr_scrapR
Examples
# \donttest{
load_pfr_passing()
#> Warning: `load_pfr_passing()` has been deprecated, please use
#> `load_pfr_advstats(stat_type = 'pass', summary_level = 'season')`
#> ── nflverse advanced passing season stats via PFR ──────────────────────────────
#> ℹ Data updated: 2022-06-08 12:58:58 UTC
#> # A tibble: 329 × 28
#> player team pass_…¹ batte…² throw…³ spikes drops drop_…⁴ bad_t…⁵ bad_t…⁶
#> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 Jameis Wi… TB 626 11 22 2 23 3.8 124 20.6
#> 2 Dak Presc… DAL 596 9 14 1 36 6.2 86 14.8
#> 3 Jared Goff LAR 626 17 15 1 27 4.4 123 20.2
#> 4 Philip Ri… LAC 591 13 16 3 25 4.4 88 15.4
#> 5 Matt Ryan ATL 616 19 27 1 17 2.9 86 14.6
#> 6 Russell W… SEA 516 9 20 3 17 3.4 91 18.5
#> 7 Tom Brady NE 613 6 40 0 34 5.9 118 20.6
#> 8 Derek Carr OAK 513 9 28 2 25 5.2 53 11
#> 9 Carson We… PHI 607 16 10 1 28 4.7 106 17.8
#> 10 Patrick M… KC 484 6 19 0 25 5.4 85 18.3
#> # … with 319 more rows, 18 more variables: on_tgt_throws <dbl>,
#> # on_tgt_pct <dbl>, season <int>, pfr_id <chr>, pocket_time <dbl>,
#> # times_blitzed <dbl>, times_hurried <dbl>, times_hit <dbl>,
#> # times_pressured <dbl>, pressure_pct <dbl>, rpo_plays <dbl>,
#> # rpo_yards <dbl>, rpo_pass_att <dbl>, rpo_pass_yards <dbl>,
#> # rpo_rush_att <dbl>, rpo_rush_yards <dbl>, pa_pass_att <dbl>,
#> # pa_pass_yards <dbl>, and abbreviated variable names ¹pass_attempts, …
#> # ℹ Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names
# }