lineups_searcher {AdvancedBasketballStats}R Documentation

Statistics searcher

Description

The function allows the statistical search of the lineups where the entered players appear.

Usage

lineups_searcher(df1, n, p1, p2, p3, p4)

Arguments

df1

Should be a Data Frame. This parameter has to be in the format provided by the lineups_advance_stats() function.

n

Should be a numer. It represents the number of player to be found.

p1

Should be a String. Represents the name of the first player to be found.

p2

Should be a String. Represents the name of the second player to be found.

p3

Should be a String. Represents the name of a player to be found.

p4

Should be a String. Represents the name of a player to be found.

Details

Value

Data frame with the statistics of the lineups where the entered players appear

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("PG" = c("James","Rondo"),"SG" = c("Green","Caruso"),
"SF" = c("Caldwell","Kuzma"), "PF" = c("Davis","Davis"),
"C" = c("Howard ","Howard"),"MP" = c(7,1), "FG " = c(4,0),
"FGA " = c(7,0),"Percentage FG" = c(0.571,0),
"X3P  " = c(0,0),"X3PA  " = c(2,0),"Percentage 3P" = c(0,0),
"X2P " = c(4,0), "X2PA " = c(5,0), "Percentage 2P" = c(0.8,0),
"FT " = c(1,0), "FTA " = c(3,0), "Percentage FT" = c(0.333,0),
"ORB " = c(2,0), "DRB " = c(5,0),"TRB " = c(7,0), "AST " = c(2,0),
"STL " = c(1,0), "BLK " = c(0,0),"TOV " = c(7,2), "PF" = c(1,0),
"PLUS" = c(9,0),"MINUS" = c(17,3),"P/M" = c(-8,-3))

n <- 2

p1 <- "James"

p2 <- "Davis"

p3 <- ""

p4 <- ""


lineups_searcher(df1,n,p1,p2,p3,p4)


[Package AdvancedBasketballStats version 1.0.1 Index]