4
$\begingroup$

I am extracting tweets on brands for sentiment analysis. I am using twitteR package on R. Is there a specific way by which I can only collect tweets from a location ex NY or Paris or Canada etc. I have tried Geocode but here I have to give lat and long data and the vicinity range.

$\endgroup$
1
  • $\begingroup$ I'd use a real database like postgres, and query it with an R library. It'll make short work of such filtering and aggregation. $\endgroup$
    – Emre
    Aug 9, 2017 at 4:21

1 Answer 1

1
$\begingroup$

To get location based tweets, you have to specify a location circle with center (lat and long) and radius using reverse_geocode.

There is no way to find tweets by setting a polygon or drawing a border.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.