Description Usage Arguments Details Value Author(s) References Examples
Investigates the network of assists-shots in a team
1 2 3 4 5 6 7 |
data |
a data frame whose rows are field shots and columns are variables to be specified in |
assist |
character, indicating the name of the variable with players who made the assists, if any. |
player |
character, indicating the name of the variable with players who made the shot. |
points |
character, indicating the name of the variable with points. |
event.type |
character, indicating the name of the variable with type of event (mandatory categories are |
The data
data frame could also be a play-by-play dataset provided that rows corresponding to events different from field shots are not coded as "shot"
in the event.type
variable.
A list
with 3 elements, assistTable
(a table), nodeStats
(a data frame), and assistNet
(a network object). See Details.
assistTable
, the cross-table of assists made and received by the players.
nodeStats
, a data frame with the following variables:
FGM
(fields goals made),
FGM_AST
(field goals made thanks to a teammate's assist),
FGM_ASTp
(percentage of FGM_AST
over FGM
),
FGPTS
(points scored with field goals),
FGPTS_AST
(points scored thanks to a teammate's assist),
FGPTS_ASTp
(percentage of FGPTS_AST
over FGPTS
),
AST
(assists made),
ASTPTS
(point scored by assist's teammates).
assistNet
, an object of class network
that can be used for further network analysis with specific R packages (see network
)
Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)
P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications in R. CRC Press.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.