on_off_splits: Get on/off splits for selected players from stints.

Description Usage Arguments Value See Also Examples

View source: R/on_off_splits.R

Description

On/off splits shows how team and opponents played with and without selected players. For this function selected players needs to be from the same team. You can select up to 5 players. To get all available players in stints use get_on_off_splits_players()

Usage

1
on_off_splits(stints.df, players)

Arguments

stints.df

data.frame, stints download with get_stints_fibalivestats() or get_stints_livefibaeurope()

players

a character vector with player or players for on/off splits, Max number of players is 5.

Value

list with data.frames, data frames contains different stats types: Ratings, Team Shooting, Opponent Shooting, Team Playmaking, Opponent Playmaking, Team Boxscore Defensive, Opponent Boxscore Defensive

See Also

get_on_off_splits_players, get_stints_fibalivestats, get_stints_livefibaeurope

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#get on/off splits from Basketball Champions League
#firstly get the stints from bcl using data(), stored in cl_stints
data("cl_stints")

#check available players
get_on_off_splits_players(cl_stints)

#get on/off splits for M. PONITKA
on_off_splits(cl_stints, players = 'M. PONITKA')

#get on/off splits for M. PONITKA, D. SUMMERS and J. BROWN
on_off_splits(cl_stints, players = c('M. PONITKA', 'D. SUMMERS', 'J. BROWN'))

bziarkowski/euRobasket documentation built on Dec. 11, 2017, 5:35 a.m.