作者:手机用户2502853881 | 来源:互联网 | 2023-02-01 13:01
1> MrFlick..:
此行为是设计使然:https://github.com/tidyverse/magrittr/blob/00a1fe3305a4914d7c9714fba78fd5f03f70f51e/README.md#re-using-the-placeholder-for-attributes
既然你没有.
它自己,那么仍然会将tibble作为第一个参数传递,所以它更像是
... %>% table(., .$type, .$colour)
官方的magrittr解决方案是使用花括号
... %>% {table(.$type, .$colour)}