r - 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 ...
这个错误的解决方法是什么?谢谢你。
解决方案
推荐阅读
- docker - nginx 403 Forbidden on laravel project with docker
- mongodb - 如何通过shell脚本执行mongo命令?(我的不工作)
- python - start_request 的循环槽 CSV
- python - NameError:名称'cap'未定义
- grep - 如何显示使用 find 命令找到并提供给 grep 以匹配字符串的文件的完整路径
- android - Titanium 中的 Firebase 动态链接问题
- entity-framework - 我可以在使用实体框架的 bd 表中拥有我的类中不存在的属性吗?
- razor - 无法在 Razor 视图中使用标签
- python - 计算组中的唯一值 pandas
- c - 无法准确理解二维数组中的指针