I was able to run the code below to extract tweets using the hashtag "rstats".
Now is there a way to extract tweets for ONLY '#rstats". So that '#rstats' is the only hashtag in the tweet?
I want to scrape tweets that have ONE and only ONE specific hashtag..
I was thinking something like using a count function to count hashtags where it equals 1 and equals a specific 'hashtag value"
## search for 500 tweets using the #rstats hashtag
rstats_tweets <- search_tweets(q = "#rstats",
n = 500)
# view the first 3 rows of the dataframe
head(rstats_tweets, n = 3)