小编SAS*_*man的帖子

无法在 R 中使用“计数”功能

我试图简单地使用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
推荐指数
1
解决办法
6696
查看次数

标签 统计

r ×1