Description Usage Arguments Details Value Author(s) Examples
View source: R/individuals_data_adjustment.R
The function transform the statistics entered for later use in the rest of the functions that apply to individuals statistics.
1 |
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. |
The data.frame must have the same columns and these represent the same as in the example.
The input data.frame must have the last row that represents the team's statistics.
The function allows the transformation of the individual's statistics to which the shooting percentages and the number of total rebounds are added.
The function allows the transformation of the defensive statistics to which the force missed shot and the forced turnovers.
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:
Name of the player (Name)
Games played (G)
Games Started (GS)
Minutes Played (MP)
Field Goals Made (FG)
Field Goals Attempted (FGA)
Field Goals Percentage (FG%)
Three Points Made (3P)
Three Points Attempted (3PA)
Three Points Percentage (3P
Two Points Made (2P)
Two Points Attempted (2PA)
Two Points Percentage (2P%)
Free Throw Made (FT)
Free Throw Attempted (FTA)
Free Throw Percentage (FT%)
Offensive Rebounds (ORB)
Defensive Rebounds (DRB)
Total Rebounds (TRB)
Assists (AST)
Steals (STL)
Blocks (BLK)
Turnover (TOV)
Personal Fouls (PF)
Points (PTS)
Plus Minus (+/-)
The data frame obtained for the defensive individual's statistics will have the following format:
Name of the player (Name)
Minutes Played (MP)
Defensive Rebounds (DRB)
FGA by opposing team (FM)
Blocks (BLK)
(TOTAL FM)
Forced turnover(FTO)
Steals (STL)
Total forced turnover (TOTAL FTO)
FTA by opposing team (FFTA)
FG made by opposing team (DFGM)
FT made by opposing team (DFTM)
Fco Javier Cantero fco.cantero@edu.uah.es
Juan José Cuadrado jjcg@uah.es
Universidad de Alcalá de Henares
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.