player_game: Detailed Boxscore for Single NFL Game

Description Usage Arguments Details Value Examples

View source: R/PlayerGameFunctions.R

Description

This function is used to neatly read all of a players measurable statistics from a given game. Each player's statistics can be viewed on one line.

Usage

1
player_game(GameID)

Arguments

GameID

(character or numeric) A 10 digit game ID associated with a given NFL game.

Details

This dataframe includes 55 variables including identifiers such as:

Statistics are included for passing, rushing, receiving, kick return, punt return, kicking, defensive, and fumbles. The outputted columns are as follows:

Value

This function outputs a single 55 column dataframe containing all rushing, passing, receiving, kick return, punt return, kicking, fumble, and defensive statistics for each player in a single game. Each player is assigned one line associated wih their statisitcs.

Examples

1
2
3
4
# GameID for a random game
nfl.data.gameID <- "2013090800"
PlayerGameData <- player_game(nfl.data.gameID)
head(PlayerGameData)

maksimhorowitz/nflscrapR documentation built on April 3, 2020, 7:40 p.m.