首页 > 解决方案 > R:UseMethod(select_)中的错误->没有适用于“select_”的适用方法应用于“因子”类的对象

问题描述

我启动这个命令

 select(FASCIA_ETA,stato)%>% 
    group_by(FASCIA_ETA) %>% 
    count(stato) %>% 
    mutate(statoRate=100*round(n/sum(n),2))

但错误是:no applicable method for 'select_' applied to an object of class "factor"

输入是:

FASCIA_ETA  :Factor w/ 9 levels "da 0 a 24 anni",..: 5 5 7 3 4 3 5 4 4 5 ...
and stato  : int  1 1 1 1 1 1 1 1 1 1 ...

这个错误的解决方法是什么?谢谢你。

标签: rinputcompiler-errorsstatistics

解决方案


推荐阅读