Learn R Programming

nflreadr (version 1.4.1)

nflverse_game_id: Compute nflverse Game Identifiers

Description

Compute nflverse Game Identifiers

Usage

nflverse_game_id(season, week, away, home)

Value

A character vector

Arguments

season

4 digit season between 1999 and the output of most_recent_season()

week

Numeric or character giving the week, between 1 and 22.

home, away

Valid NFL team abbreviation as it can be found in team_abbr_mapping

Examples

Run this code
.for_cran()
nflverse_game_id(2022, 2, "LAC", "KC")

Run the code above in your browser using DataLab