錯誤使用基本dplyr::select今天一個新的錯誤提出了自己: library(tidyverse)
select(iris, starts_with("petal"))
回報 >Error in mut_env_parent(overscope$.top_env, lexical_env) :
object 'rlang_mut_env_parent' not found
我很難在使用dplyr的函數中重命名列。我已經在非標準評估和使用enquo上找到有用的帖子(例如,http://dplyr.tidyverse.org/articles/programming.html和Changing names of resulting variables in custom dplyr function)。最終目標是使用該函數來彙總每個組,然後將列重命名爲比原始變量名稱更有