> d<-d %>% group_by(participant) %>% mutate(trial = row_number()) > d<-ungroup(d) > d_block1<-filter(d,d$phase == 1)
R语言学习记录:用filter过滤前,需要对分组的数据框解组
于 2023-11-16 22:03:38 首次发布
> d<-d %>% group_by(participant) %>% mutate(trial = row_number()) > d<-ungroup(d) > d_block1<-filter(d,d$phase == 1)