Scrape NFL standings for a specific season from ESPN's site

scrape_nfl_standings(season, add_superbowls = FALSE)

Arguments

season

Either numeric or character

add_superbowls

Join superbowl winners (appropriate for historical data or after season over)

Value

Returns a tibble

Examples

# Get standings from 2018 season
scrape_nfl_standings(season = "2018")
#> Scraping 2018
#> Error in dplyr::mutate(., team_abb = team_abb, team = team_names, season = as.integer(season)): Problem while computing `team = team_names`.
#>  `team` must be size 32 or 1, not 30.

# Get standings from 2010 season
scrape_nfl_standings(2000, add_superbowls = TRUE)
#> Scraping 2000
#> Error in dplyr::mutate(., team_abb = team_abb, team = team_names, season = as.integer(season)): Problem while computing `team = team_names`.
#>  `team` must be size 31 or 1, not 27.