R Studio を使用して調査を分析しています。そのために、tidytext パッケージの Bing Sentiment レキシコンを使用しています。
いくつかの言葉は私の調査では正しい意味を持っていません。具体的には、「入札」はポジティブとしてコード化されていますが、回答者は「入札」をネガティブ (痛み) として意味しています。bing tibble から単語を削除して新しい単語を追加する方法は知っていますが、単語の意味を簡単に変更するにはどうすればよいですか?
例えば:
structure(list(word = c("pain", "tender", "sensitive", "headaches",
"like", "anxiety"), sentiment = c("negative", "positive", "positive",
"negative", "positive", "negative"), n = c(351L, 305L, 279L,
220L, 200L, 196L)), row.names = c(NA, 6L), class = "data.frame")
私はそれが次のようになりたい:
structure(list(word = c("pain", "tender", "sensitive", "headaches",
"like", "anxiety"), sentiment = c("negative", "negative", "positive",
"negative", "positive", "negative"), n = c(351L, 305L, 279L,
220L, 200L, 196L)), row.names = c(NA, 6L), class = "data.frame")
ありがとうございました!