Fetches a copy of the latest week-level stats from nflfastr's data repository. The same output as nflfastr's load_player_stats() function.

nflfastr_weekly(type = c("offense", "defense", "all"))

Arguments

type

One of "offense", "defense", or "all" - currently, only "offense" is available.

Value

Weekly stats for all passers, rushers and receivers in the nflfastR play-by-play data from the 1999 season to the most recent season

Details

The goal of this data is to replicate the NFL's official weekly stats, which can diverge a bit from what fantasy data feeds display.

If you have any issues with the output of this data, please open an issue in the nflfastr repository.

See also

Examples

# \donttest{ nflfastr_weekly()
#> # A tibble: 112,757 x 42 #> player_id player_name recent_team season week completions attempts #> <chr> <chr> <chr> <int> <int> <int> <int> #> 1 00-0000003 A.al-Jabbar MIA 1999 1 0 0 #> 2 00-0000003 A.al-Jabbar MIA 1999 2 0 0 #> 3 00-0000003 A.al-Jabbar MIA 1999 4 0 0 #> 4 00-0000003 A.al-Jabbar CLE 1999 7 0 0 #> 5 00-0000003 A.al-Jabbar CLE 1999 8 0 0 #> 6 00-0000003 A.al-Jabbar CLE 1999 9 0 0 #> 7 00-0000003 A.al-Jabbar CLE 1999 10 0 0 #> 8 00-0000003 A.al-Jabbar CLE 1999 11 0 0 #> 9 00-0000003 A.al-Jabbar CLE 1999 12 0 0 #> 10 00-0000003 A.al-Jabbar CLE 1999 13 0 0 #> # … with 112,747 more rows, and 35 more variables: passing_yards <dbl>, #> # passing_tds <int>, interceptions <dbl>, sacks <dbl>, sack_yards <dbl>, #> # sack_fumbles <int>, sack_fumbles_lost <int>, passing_air_yards <dbl>, #> # passing_yards_after_catch <dbl>, passing_first_downs <dbl>, #> # passing_epa <dbl>, passing_2pt_conversions <int>, dakota <dbl>, #> # carries <int>, rushing_yards <dbl>, rushing_tds <int>, #> # rushing_fumbles <dbl>, rushing_fumbles_lost <dbl>, #> # rushing_first_downs <dbl>, rushing_epa <dbl>, #> # rushing_2pt_conversions <int>, receptions <int>, targets <int>, #> # receiving_yards <dbl>, receiving_tds <int>, receiving_fumbles <dbl>, #> # receiving_fumbles_lost <dbl>, receiving_air_yards <dbl>, #> # receiving_yards_after_catch <dbl>, receiving_first_downs <dbl>, #> # receiving_epa <dbl>, receiving_2pt_conversions <int>, #> # special_teams_tds <dbl>, fantasy_points <dbl>, fantasy_points_ppr <dbl>
# }