Description Usage Arguments Value See Also Examples
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.
1 | get_stints_fibalivestats(gameid)
|
gameid |
numeric, game id from fibalivestats.com |
data.frame with stints
get_stints_livefibaeurope
on_off_splits
, get_on_off_splits_players
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]))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.