我试图执行基于http://tidytextmining.com/sentiment.html#the-sentiments-dataset情感分析。在执行情感分析之前,我需要将我的数据集转换为整洁的格式。 我的数据集的形式: x <- c("test1" , "test2")
y <- c("this is test text1" , "this is test text2")
res <-
我已经编写了以下代码来比较两个市场,如果我们单独提供数据框名称,代码正在工作。 enter image description here for(i in 1:nrow(Market_SystemA))
{
A <- Market_SystemA[i,2]
B <- Market_SystemB[i,3]
MarketA <- data.frame(A)