individuals_data_adjustment {AdvancedBasketballStats}R Documentation

Individual stat adjuster

Description

The function transform the statistics entered for later use in the rest of the functions that apply to individuals statistics.

Usage

individuals_data_adjustment(df1)

Arguments

df1

Should be a Data Frame that represents the individual statistics of the players. The parameter has to be in the format provided by the data_adjustment() function.

Details

Value

Data.frame with the transformed statistics for use in the rest of the functions.

The data frame obtained for the individual's statistics will have the following format:

The data frame obtained for the defensive individual's statistics will have the following format:

Author(s)

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

Juan José Cuadrado jjcg@uah.es

Universidad de Alcalá de Henares

Examples

df1 <- data.frame("Name" = c("James","Team"), "G" = c(67,0), "GS" = c(62,0),
"MP" = c(2316,1), "FG" = c(643,0), "FGA" = c(1303,0),"3P  " = c(148,0),
"3PA" = c(425,0),"2P" = c(495,0), "2PA" = c(878,0),  "FT" = c(264,0),
"FTA" = c(381,0),"ORB" = c(66,0),  "DRB" = c(459,0), "AST" = c(684,0),
"STL" = c(78,0),  "BLK" = c(36,0),"TOV" = c(261,0),  "PF" = c(118,0),
"PTS" = c(1698,0),  "+/-" = c(0,0))

individuals_data_adjustment(df1)

df2 <- data.frame("Name" = c("Witherspoon ","Team"), "MP" = c(14,200),
"DREB" = c(1,0),"FM" = c(4,0), "BLK" = c(0,0),"FTO" = c(0,0),
"STL" = c(1,1), "FFTA" = c(0,0),  "DFGM" = c(1,0), "DFTM" = c(0,0))

individuals_data_adjustment(df2)


[Package AdvancedBasketballStats version 1.0.1 Index]