Learn R Programming

NBAloveR (version 0.1.3.3)

getMatchups: Season Matchups

Description

Season Matchups and results of a given team

Usage

getMatchups(team_code, season)

Arguments

team_code

Team code consisting 3 characters

season

Season number

Value

This function returns data.frame including columns:

  • G

  • Date

  • StartTime

  • Opponent

  • Result

  • OT

  • Tm

  • Opp

  • W

  • L

  • Streak

See Also

https://www.basketball-reference.com/teams/

Examples

Run this code
# NOT RUN {
 bos19 <- getMatchups(team_code = "bos", season = 2019)
 head(bos19)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab