Package 'nblR'

Title: Data Extraction of Australian NBL Basketball Statistics
Description: Allow users to obtain basketball statistics for the Australian basketball league 'NBL'<https://nbl.com.au/>. Stats include play-by-play, shooting locations, results and box scores for teams and players.
Authors: Jason Zivkovic [aut, cre, cph]
Maintainer: Jason Zivkovic <[email protected]>
License: GPL-3
Version: 0.0.4
Built: 2024-10-30 02:59:57 UTC
Source: https://github.com/jaseziv/nblr

Help Index


Get player box score data from the NBL

Description

Returns a data frame of all available player box scores data for NBL matches played since 2015-16

Usage

nbl_box_player()

Value

returns a dataframe of player box score data

Examples

try({
player_box <- nbl_box_player()
})

Get team box score data from the NBL

Description

Returns a data frame of all available team box scores data for NBL matches played since 2015-16

Usage

nbl_box_team()

Value

returns a dataframe of team box score data

Examples

try({
team_box <- nbl_box_team()
})

Get play-by-play data from the NBL

Description

Returns a data frame of all available play-by-play data for NBL matches played since 2015-16

Usage

nbl_pbp()

Value

returns a dataframe of play-by-play data

Examples

try({
pbp <- nbl_pbp()
})

Get match results for all NBL matches

Description

Returns a data frame of all results in either wide or long form of all NBL matches played since 1979

Usage

nbl_results(wide_or_long)

Arguments

wide_or_long

either 'wide' or 'long' to get either one row per match, or a row for each team for each match

Value

returns a dataframe of match results

Examples

try({
results_wide <- nbl_results(wide_or_long="wide")
results_long <- nbl_results(wide_or_long="long")
})

Get shots data from the NBL

Description

Returns a data frame of all available shot data for NBL matches played since 2015-16

Usage

nbl_shots()

Value

returns a dataframe of shot location data

Examples

try({
shots <- nbl_shots()
})