Type: | Package |
Title: | Data Extraction of Australian NBL Basketball Statistics |
Version: | 0.0.4 |
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. |
License: | GPL-3 |
URL: | https://github.com/JaseZiv/nblR |
BugReports: | https://github.com/JaseZiv/nblR/issues |
Depends: | R (≥ 4.0.0) |
Imports: | magrittr, cli |
Suggests: | dplyr, knitr, rmarkdown, testthat (≥ 3.0.0) |
Encoding: | UTF-8 |
RoxygenNote: | 7.2.1 |
Config/testthat/edition: | 3 |
NeedsCompilation: | no |
Packaged: | 2023-02-04 09:19:14 UTC; zivkovij |
Author: | Jason Zivkovic [aut, cre, cph] |
Maintainer: | Jason Zivkovic <jaseziv83@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2023-02-06 11:02:33 UTC |
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()
})