这个问题在这里已有答案:
我有一个数据集
company_category_list Cluster
Biotechnology 1
Software 2
Biotechnology|Search 1
Biotechnology 1
Biotechnology 1
Enterprise Software 3
Software 2
我想获得按Cluster列分组的第1列的计数,因此使用了以下代码:
library(dplyr)
CountSummary <-SFBay_2012 %>%
group_by(Cluster) %>%
summarise(company_category_list_Count = count_(company_category_list))
但是得到以下错误:
Error: no applicable method for 'group_by_' applied to an object of class "factor"
有人可以帮忙吗?提前致谢!!
1 回答
我想我们需要
要么
要么
要么