r - R中未发现对象“负”错误-情绪分析期间
问题描述
我正在尝试通过提取推文在 R 中进行情感分析。推文被提取得很好。但是当我尝试对推文进行标记时出现此错误。我得到的错误是
“mutate_impl(.data,dots)中的错误:评估错误:找不到对象'负'。”。
这是我写的代码
tokens %>%
inner_join(get_sentiments("bing")) %>% # pull out only sentiment words
count(sentiment) %>% # count the # of positive & negative words
spread(sentiment, n, fill = 0) %>%
mutate(sentiment = positive - negative)
一旦我包含了 Mutate 语句,就会抛出这个错误。感谢我在解决这个问题上能得到的任何帮助。
解决方案
推荐阅读
- android - JWPlayer:视频未在 ANDROID 中使用 Chrome 版本 71 以全视图打开
- javascript - 在 Javascript 中合并树而不编写循环
- python-2.7 - pipenv:TypeError:强制转换为 Unicode:需要字符串或缓冲区,找到类型
- angular - UnhandledPromiseRejectionWarning:TypeError:driver.controlFlow 不是函数
- assembly - 为什么 qemu 对 boot loader 有效,但真机不工作?
- c - 分配给另一个参数时来自不兼容指针类型的警告分配
- sql - 根据复杂条件选择
- c++ - 当多个目标使用相同的源文件时,如何使用 --save-temps 保存程序集文件?
- syntax-error - 局部变量上不支持的“const”声明(Julia 中的 react_network)
- react-native - Expo ImagePicker 未在 IOS 上打开