Introduction

This vignette provides an overview to get you started with using superNetballR. As at 2018-04-08, this package contains the full 2017 season match statistics and player statistics.

Sourcing Match Data

Data are sourced from ‘https://mc.championdata.com/data/’ under certain match and round id’s. The 2017 home and away season is in the 10083 folder, whilst the finals are in the 10084 folder. The full (processed) data are supplied with this package.

To download statistics from a single match, you use the downloadMatch function. As an example, the following code will download the match from round 5, game 3:

The downloaded object is a list, containing detailed statistics (including period-by-period statistics) for the match and players:

Tidying Match and Player Statistics

The full match data can be tidied into match and player statistics, grouped by period.

Tidying match statistics using the tidyMatch function:

Tidying player statistics using the tidyPlayers function:

Season Data and Ladders

Provided with the superNetballR package is the full 2017 season match and player statistics in tidied format. These have been obtained using the previously described methods, tidied, and then combined by rows to produce a single data frame:

Using a dataset that contains all matches up to a given round in a season means it is easy to reproduce ladder positions. A ladders function is provided that can be used on full season data. For example, here is the ladder as it stood at the end of the 2017 home and away season:

The round number is provided above, as the home and away season contained 14 rounds.