0

I am trying to use the function search_tweets, but instead of manually inputing the query, I have it in a dataframe. Is there a way were the function can read the text from the dataframe?

Here is my code Retweeters1 <- search_tweets(Tweet2, n=100), were Tweet2 is a dataframe.

Phil
  • 7,287
  • 3
  • 36
  • 66

1 Answers1

0
library(dplyr)
Retweeters1 <- Tweet2 %>% search_tweets(n=100)
Nimantha
  • 6,405
  • 6
  • 28
  • 69
Prem
  • 11,775
  • 1
  • 19
  • 33
  • I have the tweet in Tweet2, and I want it to be searched using sear_tweets function. Any suggestion? – Hussain Shehadeh Jul 20 '17 at 18:26
  • But in your original question you have mentioned that search strings are there in a dataframe like `Tweet2 <-as.data.frame(search_string=c("string1","string2","string3"))` and you want to fetch tweets related to these strings. Please edit your question with more accurate detail if I misunderstood it. – Prem Jul 20 '17 at 18:44
  • I have the tweet I want to search for in the Tweet2 dataframe. I want a way were I can search_tweet without typing what is in Tweet2 manually. – Hussain Shehadeh Jul 20 '17 at 18:46