# load decembergp <-read_csv("03_to_23.csv")# find mean pace gp %>%group_by(coach) %>%summarise(mean =mean(pace))
# A tibble: 2 × 2
coach mean
<chr> <dbl>
1 Hubert Davis 70.1
2 Roy Williams 72.7
Code
# 70.1 davis# 72.7 williams# find record over last 70gp %>%slice(579:648) %>%group_by(wl) %>%count()
# A tibble: 2 × 2
# Groups: wl [2]
wl n
<chr> <int>
1 L 32
2 W 38
Code
# 1 L 32# 2 W 38# find same time framegp %>%filter(pace <70& season >2017) %>%group_by(coach) %>%count()
# A tibble: 2 × 2
# Groups: coach [2]
coach n
<chr> <int>
1 Hubert Davis 33
2 Roy Williams 33
Code
# 1 Hubert Davis 33# 2 Roy Williams 33 ann_dat_text<-data.frame(coach=c("Hubert Davis","Roy Williams"),pace=c(0.040,70),label=c("~53% of games \nover 70 possessions","~70% of games \nover 70 possessions"))