I started having problems with extracting tweets with twitteR package: I don't get "location" (that's stated in user's profile) in the output anymore and I need it for my further analysis. I am using the exact same code as before. Can anyone help?
TweetFrame <- function(searchTerm, maxTweets)
{
tweetList <- searchTwitter(searchTerm, n = maxTweets, lang = "en")
tweetDF <- do.call("rbind", lapply(tweetList, as.data.frame))
return(tweetDF[order(as.integer(tweetDF$created)), ])
}
tweetDF <-
TweetFrame("#climate OR climate change OR global warming", 20)
Before I would get a data frame with 20 objects and 19 variables, but now it returns only 16 variables.