📜  dplyr 按 3 的间隔分组 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:27.503000             🧑  作者: Mango

代码示例1
d %>% mutate( ints = cut(v1 ,breaks = 11)) %>% 
   group_by(ints) %>% 
   summarise( mean.v2 = mean(v2) , mean.v3 = mean(v3) )