proper_jsonurl_formatting: Formatting URL for location of NFL Game JSON Data

Description Usage Arguments Value Examples

View source: R/ScrapingFunctionsGameURLs.R

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

1

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

1
2
3
4
5
# 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) 

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