我试图简单地使用count使用数据框和 $ 来调用变量的 1 个变量。我在做
count(customer_churn$Churn)
Run Code Online (Sandbox Code Playgroud)
在安装之前,dplyr我得到了以下信息:
计数错误(customer_churn$Churn):找不到函数“计数”
安装dplyr并调用库后,我得到:
UseMethod("summarise_") 中的错误:没有适用于 'summarise_' 的方法应用于类 "c('integer', 'numeric')" 的对象
然后我尝试使用summarise代替并得到相同的错误。
r ×1