owenqi 发表于 2021-4-24 04:35 
用搜索引擎试试?
lm_same_slope <- carpenter_dobkin_2009 %>%
+ mutate(threshold = ifelse(agecell >= 21, 1, 0)) %$%
+ lm(all ~ threshold + I(agecell - 21))
Error in carpenter_dobkin_2009 %>% mutate(threshold = ifelse(agecell >= :
没有"%$%"这个函数
请问,这个错误怎么解决呢?