0
> orioles.tweets <- searchTwitter('#orioles', n=15, lang="en")
> orioles.text=laply(orioles.tweets,function(t) t$getText())
> class(toJSON(orioles.text))
[1] "character"
爲什麼會發生這種情況?試圖將推文轉換爲json格式以插入到mongoDB中
你還沒有解釋這個結果是什麼意外。 –
toJSON()必須將推文轉換爲json格式。所以類(toJSON(orioles.text))應該給我結果「json」 – VBB