Scrape weekly NFL leaders stats from ESPN

scrape_weekly_leaders(season = 2019, week = 1, stats = "passing")

Arguments

season

character or numeric - greater than 2002

week

character or numeric - 1 to 17 for regular season

stats

character - either receiving, passing, or rushing

Value

tibble

Examples

scrape_weekly_leaders(season = 2002, stats = "passing", week = 1)
#> Scraping passing stats for week 1 from 2002 season!
#> # A tibble: 30 × 13 #> season week rank name team result pass_comp pass_att pass_yds pass_td #> <dbl> <dbl> <int> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> #> 1 2002 1 1 Derek C… LV W 33-2… 34 56 435 2 #> 2 2002 1 2 Dak Pre… DAL L 31-2… 42 58 403 3 #> 3 2002 1 3 Tom Bra… TB W 31-2… 32 50 379 4 #> 4 2002 1 4 Kirk Co… MIN L 27-2… 36 49 351 2 #> 5 2002 1 5 Jared G… DET L 41-3… 38 57 338 3 #> 6 2002 1 6 Patrick… KC W 33-2… 27 36 337 3 #> 7 2002 1 7 Justin … LAC W 20-1… 31 47 337 1 #> 8 2002 1 8 Trevor … JAX L 37-2… 28 51 332 3 #> 9 2002 1 9 Matthew… LAR W 34-1… 20 26 321 3 #> 10 2002 1 10 Baker M… CLE L 33-2… 21 28 321 0 #> # … with 20 more rows, and 3 more variables: pass_int <dbl>, sack <dbl>, #> # pass_fumbles <dbl>