lineups_searcher: Statistics searcher

Description Usage Arguments Details Value Author(s) Examples

View source: R/lineups_searcher.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)

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