play_stats_per_game: Play stats per game

Description Usage Arguments Details Value Author(s) Examples

View source: R/play_stats_per_game.R

Description

The function allows the calculation of play statistics per game.

Usage

1

Arguments

df1

Should be a Data Frame that represents the play's statistics. The parameter has to be in the format provided by the play_data_adjustment() function.

Details

The calculation is made with the number of games played by the player.

Value

Data frame with play statistics per game

Author(s)

Fco Javier Cantero fco.cantero@edu.uah.es

Juan José Cuadrado jjcg@uah.es

Universidad de Alcalá de Henares

Examples

1
2
3
4
5
6
7
8
9
df1 <- data.frame("Name" = c("Sabonis ","Team"), "GP" = c(62,71),
"PTS" = c(387,0), "FG" = c(155,1), "FGA" = c(281,1),
"FGA Percentage" = c(0.552,1),"3P" = c(6,1),"3PA" = c(18,1),
"3P Percentage" = c(0.333,1),"2P" = c(149,0),"2PA" = c(263,0),
"2P Percentage" = c(0.567,0),"FT" = c(39,1),  "FTA" = c(53,1),
"FT Percentage" = c(0.736,1),  "ANDONE" = c(12,1), "AST" = c(0,1),
"TOV" = c(27,1))

play_stats_per_game(df1)

AdvancedBasketballStats documentation built on April 6, 2021, 5:06 p.m.