nba_density | R Documentation |
Accepts the result of 'nba_travel()' & returns a dataframe with some common arbitrary schedule density related metrics such as back-to-back(b2b), 3in4, 4in5, etc.
nba_density(df)
df |
A dataframe. The object storing the result of 'nba_travel()' |
A data frame with the following columns:
A chracter string. The season(s) downloaded.
A character String. The phase of the season. RS or PO.
Date object. The date of the game.
A character String. The name of the team.
A character String. The name of the opponent.
A character string. Location of the game. (Home or Away)
A character string. Outcome of the game. (W or L)
A character string. B2B-1st (first game in B2B games) or B2B-2nd (second game in B2B games.)
A character string. If yes, it is the first game of a back-to-back.
A character string. If yes, it is the second game of a back-to-back.
A character string. If yes, it is the third game in 4 days.
A character string. If yes, it is the fourth game in 5 days.
A character string. If yes, it is the fith game in 7 days.
datos <- nba_travel()
nba_density(df = datos)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.