scrape_nfl_qbr: Scrape ESPN QBR for NFL football

View source: R/scrape_nfl_qbr.R

scrape_nfl_qbrR Documentation

Scrape ESPN QBR for NFL football

Description

Scrapes QBR tables for NFL QBs by specific week or at season level.

Usage

scrape_nfl_qbr(season = 2019, week = NA, season_type = "Regular")

Arguments

season

Either numeric or character. Must be between 2006 and current season.

week

Either NA to return season, week 1 to 4 for playoffs, or 1 to 17 for regular season.

season_type

Character - either "Regular" or "Playoffs"

Details

This function supercedes 'get_nfl_qbr' due to the ESPN API altering past data.

Value

Returns a tibble

Examples

# Scrape ALL Playoff QBR from 2016 season
scrape_nfl_qbr("2016", season_type = "Playoffs", week = NA)

# Scrape Regular season QBR for week 4 of 2019
scrape_nfl_qbr("2019", season_type = "Regular", week = 4)

jthomasmock/espnscrapeR documentation built on Feb. 11, 2024, 4:07 p.m.