我試圖執行基於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)