Title: Help Basketball Data Analysis
Version: 0.1.3.3
Description: Provides interface to the online basketball data resources such as Basketball reference API https://www.basketball-reference.com/ and helps R users analyze basketball data.
Depends: R (≥ 3.1)
License: GPL-2
Encoding: UTF-8
LazyData: true
Suggests: knitr, rmarkdown, ggplot2, plyr, rvest, stringr, xml2
VignetteBuilder: knitr
RoxygenNote: 6.1.1
Imports: magrittr, dplyr, stats, tidyr
NeedsCompilation: no
Packaged: 2019-04-24 23:46:58 UTC; KokiAndo
Author: Koki Ando [aut, cre]
Maintainer: Koki Ando <koki.25.ando@gmail.com>
Repository: CRAN
Date/Publication: 2019-04-29 09:30:03 UTC

NBAloveR: Provides data access to basketball data

Description

R package that provides an interface to online basketball data. This package allows R users to download publicly available data on basketball.

Author(s)

Koki Ando koki.25.ando@gmail.com


HallOfFame data set

Description

Data set of players in the Naismith Memorial Basketball Hall of Fame

Usage

HallOfFame

Format

A data.frame with 4 columns

Year

Year

Inductee

Name of inductee

Pos

Position

Achievements

Achievements

Source

wikipedia


franchise data set

Description

Data set of NBA franchises

Usage

franchise

Format

A data.frame with 13 columns

Franchise

Franchise name

Lg

League

From

Year the team established

To

To year

Years

Years

G

Games

W

Wins

L

Losses

Per

Win Percentage

Playoffs

Playoffs

Division

Division titles

Conference

Conference titles

Champions

Champions

Source

Basketball Reference


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:

Author(s)

Koki Ando

See Also

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

Examples

## Not run: 
 bos19 <- getMatchups(team_code = "bos", season = 2019)
 head(bos19)

## End(Not run)


Standing Data

Description

Standing data

Usage

getStandings(year, conf = c("East", "West", "All"))

Arguments

year

Season number consisting 4 digits

conf

Conference to fetch information for. Valid values are East, West or All

Value

This function returns data.fram including columns:

Author(s)

Koki Ando <koki.25.ando@gmail.com>

See Also

https://www.basketball-reference.com/leagues/NBA_2019_standings.html

Examples

## Not run: 
  Standings06 <- getStandings(year = 2006, conf = "All")
  head(Standings06)

## End(Not run)


Stats Leader

Description

Stats Leader data

Usage

getStatsLeader(stats_type = c("PTS", "G", "MP", "FG", "FT", "TRB", "AST",
  "STL", "BLK", "TOV", "PF", "FG3"), period = c("career", "season",
  "game"))

Arguments

stats_type

Stats type. PTS, G, MP, FG, FT, TRB, AST, STL, BLK, TOV, PF or FG3

period

Period. career, season or game

Value

This function returns data.frame including columns:

Author(s)

Koki Ando <koki.25.ando@gmail.com>

See Also

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

Examples

## Not run: 
 pts_leader = getStatsLeader(stats_type = "PTS", period = "season")
 head(pts_leader)

## End(Not run)


Stats Per Game for a given player

Description

Function for getting given player's stats per game

Usage

getStatsPerGame(player, season, span = 1)

Arguments

player

Player name to fetch information for

season

Season number

span

Duration of season(s). Defaults 1.

Value

This function returns data.frame including columns:

Author(s)

Koki Ando <koki.25.ando@gmail.com>

Examples

## Not run: 
RayAllen <- getStatsPerGame(player="Ray Allen", season=2008, span=1)
head(RayAllen)

## End(Not run)


Career Stats Summary

Description

Career stats summary of a given player

Usage

getStatsSummary(player)

Arguments

player

Player name

Value

This function returns data.frame including columns:

Author(s)

Koki Ando <koki.25.ando@gmail.com>

Koki Ando <koki.25.ando@gmail.com>

See Also

https://www.basketball-reference.com

Examples

## Not run: 
 kobe_summary  = getStatsSummary(player = "Kobe Bryant")
 head(kobe_summary)

## End(Not run)


Franchise History Data

Description

Franchise's season data

Usage

getTeamHistory(team_code)

Arguments

team_code

Team code consisting of 3 characters to fetch information for

Value

This function returns data.frame including columns:

Author(s)

Koki Ando <koki.25.ando@gmail.com>

See Also

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

Examples

## Not run: 
  BostonCeltics <- getTeamHistory(team_code = "bos")
  head(BostonCeltics)

## End(Not run)


Players' Salary

Description

Players' salary data for a given team

Usage

getTeamSalary(team_code)

Arguments

team_code

Team code consisting of 3 characters to fetch information for

Author(s)

Koki Ando <koki.25.ando@gmail.com>

See Also

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

Examples

## Not run: 
 salary_phi <- getTeamSalary(team_code = "phi")
 head(salary_phi)

## End(Not run)


players data set

Description

Data set of all NBA players

Usage

players

Format

A data.frame with 13 columns

Player

Name of Player

POS

Position of given player

HT

Height

WT

Weight

Age

Age

Teams

Team(s) the given player belongs to

GP

Games played

YOS

Year of seasons

PreDraftTeam

Pre-draft team

Draft.Status

Draft status

Nationality

Nationality

Year

Year

RookieYear

Rookie year

Source

Basketball Real GM


Visualization of Stats comparison

Description

Easy stats comparison function, which includes simple line and point plots

Usage

statsCompare(player_list = c(), age = FALSE)

Arguments

player_list

List of players

age

Age. valid values are TRUE or FALSE

Value

This function returns a point and line plot showing transitions of PPG stats of given players.

Author(s)

Koki Ando <koki.25.ando@gmail.com>

Examples

## Not run: 
  statsCompare(player_list = c("Ray Allen", "Klay Thompson", "Stephen Curry"), Age=TRUE)

## End(Not run)

mirror server hosted at Truenetwork, Russian Federation.