Package 'volleyxml'

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

Help Index


Extract the play-by-play data component from a volleyxml object

Description

Extract the play-by-play data component from a volleyxml object

Usage

plays(x)

Arguments

x

volleyxml: a volleyxml object as returned by vx_read

Value

The plays component of x (a data.frame)

See Also

vx_read

Examples

## Not run: 
  x <- vx_read(vx_example_file())
  head(plays(x))

## End(Not run)

Print method for summary.volleyxml

Description

Print method for summary.volleyxml

Usage

## S3 method for class 'summary.volleyxml'
print(x, ...)

Arguments

x

summary.volleyxml: a summary.volleyxml object as returned by summary.volleyxml

...

: additional arguments (currently these have no effect)

See Also

summary.volleyxml


A simple summary of a volleyball match

Description

A simple summary of a volleyball match

Usage

## S3 method for class 'volleyxml'
summary(object, ...)

Arguments

object

volleyxml: volleyxml object as returned by vx_read

...

: additional arguments (currently these have no effect)

Value

list of summary items

See Also

vx_read

Examples

x <- vx_read(vx_example_file())
summary(x)

Get team names from volleyxml object

Description

Get team names from volleyxml object

Usage

teams(x)

home_team(x)

visiting_team(x)

Arguments

x

volleyxml or data.frame: a volleyxml object as returned by vx_read, or the plays component of that object

Value

character vector of team names

See Also

vx_read

Examples

## Not run: 
  x <- vx_read(vx_example_file())
  teams(x)

## End(Not run)

volleyxml

Description

Provides basic functions for parsing volleyball scouting files in XML format.


Example data files

Description

Example data files provided as part of the volleyxml package

Usage

vx_example_file(choice = 1)

Arguments

choice

numeric: which data file to return?

  • 1 - a largely fictitious example

Value

path to the file

See Also

vx_read

Examples

myfile <- vx_example_file()
x <- vx_read(myfile)
summary(x)

Read XML volleyball scouting file

Description

Read XML volleyball scouting file

Usage

vx_read(filename)

Arguments

filename

string: name of the file to read

Value

volleyxml object (list with components meta, plays, and raw)

Examples

x <- vx_read(vx_example_file())