PbPmanipulation {BasketballAnalyzeR}R Documentation

Adapts the standard file supplied by BigDataBall to the format required by BasketballAnalyzeR

Description

Adapts the standard file supplied by BigDataBall to the format required by BasketballAnalyzeR

Usage

PbPmanipulation(data, period.length = 12, overtime.length = 5)

Arguments

data

a play-by-play data frame supplied by BigDataBall (www.bigdataball.com).

period.length

numeric, the length of a quarter in minutes (default: 12 minutes as in NBA)

overtime.length

numeric, the length of an overtime period in minutes (default: 5 minutes as in NBA)

Value

A play-by-play data frame.

The data frame generated by PbPmanipulation has the same variables of PbP.BDB (when necessary, coerced from one data type to another, e.g from factor to numeric) plus the following five additional variables:

Author(s)

Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)

References

P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications in R. CRC Press.

See Also

PbP.BDB

Examples

PbP <- PbPmanipulation(PbP.BDB)

[Package BasketballAnalyzeR version 0.8.0 Index]