2 Setup

Install some volleyball-specific packages from the openvolley project:

options(repos = c(openvolley = "https://openvolley.r-universe.dev",
                  CRAN = "https://cloud.r-project.org"))
install.packages(c("datavolley", "ovlytics"))

VBStats users will additionally need the peranavolley package:

install.packages("peranavolley")

2.1 Example data

Load some data that we’ll use in this document for illustrative purposes (a match between GKS Katowice and MKS Bedzin during the 2018/19 Polish Plus Liga, file courtesy Mark Lebedew):

x <- dv_read(ovdata::ovdata_example("190301_kats_beds"))
px <- plays(x)

summary(x)
#> Match summary:
#> Date: 2019-01-03
#> League: Plus Liga 2018/2019 - Plus Liga 2018/20189- Faza Zasadnicza
#> Teams: GKS Katowice (Gruszka Piotr/Słaby Grzegorz)
#>        vs
#>        MKS Będzin (Siewiorek Emil)
#> Result: 3-2 (25-20, 18-25, 25-15, 19-25, 15-6)
#> Duration: 114 minutes