0

我想在本地存储的数据集上过滤关于 Corona 的最常见/最受欢迎的推文(比如最被转发的推文)。但如果我使用:

# Extract tweets with a minimum of 100 retweets and 100 favorites
tweets_pop <- search_tweets("Corona min_retweets:100 AND min_faves:100")

它总是试图查看 Twitter 本身。

filter (tweets, retweetCount > 100)

或者

top_n(retweetCount, 15) 

什么都没发生

4

1 回答 1

0
filepath <- "path where the data is"
tweets <- readLines(filepath)

我加载的库是:

library("tm")
library("SnowballC")
library("wordcloud")
library("RColorBrewer")

它向我显示了第二个文件表中的所有数据,但我无法过滤它。

数据集将是这个: https ://1drv.ms/u/s!Alx2bYJE2wF-gf4fDWhIKiiLTLIBVA?e=nNorm1

于 2020-03-30T16:13:05.230 回答