ItemID,Sentiment,SentimentSource,SentimentText
1,0,Sentiment140, ok thats it you win.
2,0,Sentiment140, i think mi bf is cheating on me!!! T_T
3,0,Sentiment140," I'm completely useless rt now. Funny, all I can do is twitter. "
你如何将这样的csv文件读入R?
答案 0 :(得分:0)
使用read.csv()
阅读csv。您可以将sep=""
指定为您需要的任何内容。但如下所述,,
是分隔符的默认值。
例如,csv文件用逗号作为数据帧的分隔符,手动选择文件:
df <- read.csv(file.choose())