fourfactors: Calculates possessions, pace, offensive and defensive rating,...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/fourfactors.R

Description

Calculates possessions, pace, offensive and defensive rating, and Four Factors

Usage

1
fourfactors(TEAM, OPP)

Arguments

TEAM

a data frame whose rows are the analyzed teams and with columns referred to the team achievements in the considered games (a box score); required variables: Team, P2A, P2M, P3A, P3M, FTA, FTM, OREB, DREB, TOV, MIN (see Details).

OPP

a data frame whose rows are the analyzed teams and with columns referred to the achievements of the opponents of each team in the considered game; required variables: Team, P2A, P2M, P3A, P3M, FTA, FTM, OREB, DREB, TOV, MIN (see Details).

Details

The rows of the TEAM and the OPP data frames must be referred to the same teams in the same order.

Required columms:

Value

An object of class fourfactors, i.e. a data frame with the following columns:

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

plot.fourfactors

Examples

1
2
3
selTeams <- c(2,6,10,11)
FF <- fourfactors(Tbox[selTeams,], Obox[selTeams,])
plot(FF)

BasketballAnalyzeR documentation built on July 2, 2020, 2:14 a.m.