get_stints_fibalivestats: Get stints from fibalivestats.com using game id

Description Usage Arguments Value See Also Examples

Description

Get stints from play by play. Stint is a period of time that the same set of ten players are on the court. For every stint this function calculates stats such as total assists, total points, total possessions.

Usage

1

Arguments

gameid

numeric, game id from fibalivestats.com

Value

data.frame with stints

See Also

get_stints_livefibaeurope on_off_splits, get_on_off_splits_players

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
get_stints_fibalivestats(411996)

#You can also download multiple stints with for loop
#First get ids for the league that you want
In this example it is: FIBA Europe Cup

Get data.frame with ids and league names
data("fibalivestats_matches_ids")

#Find ids for FIBA Europe Cup
ids = fibalivestats_matches_ids$id[fibalivestats_matches_ids$league == 'FIBA Europe Cup']

#get stints with for loop
stints = data.frame()
for(i in 1:length(ids)) {
stints = rbind(stints, get_stints_fibalivestats(ids[i]))
}

bziarkowski/euRobasket documentation built on May 17, 2019, 9:12 a.m.