Title: | Reading and Analyzing XML Volleyball Scouting Files |
---|---|
Description: | Provides basic functions for parsing volleyball scouting files in xml format. |
Authors: | Ben Raymond [aut, cre], Adrien Ickowicz [aut], openvolley.org [org] |
Maintainer: | Ben Raymond <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.3 |
Built: | 2024-11-05 02:40:54 UTC |
Source: | https://github.com/openvolley/volleyxml |
Extract the play-by-play data component from a volleyxml object
plays(x)
plays(x)
x |
volleyxml: a volleyxml object as returned by |
The plays component of x (a data.frame)
## Not run: x <- vx_read(vx_example_file()) head(plays(x)) ## End(Not run)
## Not run: x <- vx_read(vx_example_file()) head(plays(x)) ## End(Not run)
Print method for summary.volleyxml
## S3 method for class 'summary.volleyxml' print(x, ...)
## S3 method for class 'summary.volleyxml' print(x, ...)
x |
summary.volleyxml: a summary.volleyxml object as returned by |
... |
: additional arguments (currently these have no effect) |
A simple summary of a volleyball match
## S3 method for class 'volleyxml' summary(object, ...)
## S3 method for class 'volleyxml' summary(object, ...)
object |
volleyxml: volleyxml object as returned by |
... |
: additional arguments (currently these have no effect) |
list of summary items
x <- vx_read(vx_example_file()) summary(x)
x <- vx_read(vx_example_file()) summary(x)
Get team names from volleyxml object
teams(x) home_team(x) visiting_team(x)
teams(x) home_team(x) visiting_team(x)
x |
volleyxml or data.frame: a volleyxml object as returned by |
character vector of team names
## Not run: x <- vx_read(vx_example_file()) teams(x) ## End(Not run)
## Not run: x <- vx_read(vx_example_file()) teams(x) ## End(Not run)
Example data files provided as part of the volleyxml package
vx_example_file(choice = 1)
vx_example_file(choice = 1)
choice |
numeric: which data file to return?
|
path to the file
myfile <- vx_example_file() x <- vx_read(myfile) summary(x)
myfile <- vx_example_file() x <- vx_read(myfile) summary(x)
Read XML volleyball scouting file
vx_read(filename)
vx_read(filename)
filename |
string: name of the file to read |
volleyxml object (list with components meta, plays, and raw)
x <- vx_read(vx_example_file())
x <- vx_read(vx_example_file())