Learn R Programming

nflscrapR (version 1.8.3)

proper_jsonurl_formatting: Formatting URL for location of NFL Game JSON Data

Description

This function pastes together the proper formatting of the nfl play by play data JSON URL such that it can be used in our play-by-play functions. This function calls the extracting_gameids function

Usage

proper_jsonurl_formatting(GameID)

Arguments

GameID

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

Value

The url where the game JSON data for the given game can be found.

Examples

Run this code
# NOT RUN {
# Save the gameID into a variable 
nfl2015.finalregseasongame.gameID <- "2016010310"

# Putting all game IDs in to proper URL format
proper_jsonurl_formatting(nfl2015.finalregseasongame.gameID) 
# }

Run the code above in your browser using DataLab