nba_injuries: NBA Injury List

View source: R/NBA_injuries.R

nba_injuriesR Documentation

NBA Injury List

Description

Returns a dataframe with injury transactions. This function queries data from <https://www.prosportstransactions.com/>

Usage

nba_injuries(
  start_date = "2017-01-01",
  end_date = "2018-01-01",
  player = "",
  team = ""
)

Arguments

start_date

Date. Minimum date to query data from. (i.e. 2010-12-03). It defaults to 2017-01-01 if not specified.

end_date

Date. Maximum date to query data to. (i.e. 2018-12-14). It defaults to 2018-01-01 if not specified.

player

Character String. Filter data by a specific player. (i.e. Pau Gasol). Note that if only the last name is indicated (i.e. Gasol) it will return results for all players with the same last name. It defaults to blank if not indicated.

team

Character String. The nickname of a unique team to query. (i.e. Lakers). It defaults to blank (all teams) if not indicated.

Value

A data frame with the following columns:

Date

A date. The date of the transaction.

Team

A character String. The nickname of the team where the transaction occurred.

Acquired

A character String. The name of the player involved in the transaction. Usually return to lineup.

Relinquished

A character String. The name of the player involved in the transaction. Usually pulled out of the lineup.

Notes

A character String. A short description about the transaction.

Examples

nba_injuries(start_date = "2012-01-01",
             end_date = "2014-01-01",
             player = "Pau Gasol",
            team = "Lakers")



josedv82/airball documentation built on June 27, 2023, 2:51 p.m.