mario icon indicating copy to clipboard operation
mario copied to clipboard

optimize backend when data and annotations are big

Open seankross opened this issue 4 years ago • 0 comments

library(dplyr)
library(Lahman)

small_batting <- Batting %>% 
    filter(yearID >= 2010) %>% 
    select(playerID, yearID, HR)

small_batting %>% 
  group_by(yearID) %>% 
  arrange(desc(HR), .by_group = TRUE) %>% 
  slice(1)

seankross avatar Dec 08 '21 23:12 seankross