tidyverse报错:Error: Problem with `summarise()` input `..1`.

使用命令df = OG %>% group_by(Gene,Domain) %>% summarise(count()) 出现如下报错:

Error: Problem with `summarise()` input `..1`.
i `..1 = count()`.
x no applicable method for 'count' applied to an object of class "NULL"

把命令改为df = OG %>% group_by(Gene,Domain) %>% summarise(n = n())即可

posted @ 2021-08-19 17:59  橙子牛奶糖  阅读(323)  评论(0编辑  收藏  举报