הסטה מזרחה בשימוש בstreamR

8 views
Skip to first unread message

eliav schmulewitz

unread,
Oct 28, 2014, 5:33:37 AM10/28/14
to israel-r-...@googlegroups.com
גילוי נאות: פרסמתי את בשאלה ב  סטק  אבל אולי בגלל מאפיינים מקומיים של הבעיה למישהו מהקבוצה כאן יהיה תשובה 

I am using the streamR package to get geotagged tweets using the next code:

filterStream(file.name="tweets_katamon.json", 
             locations=c(35.201564, 31.752025, 35.213866, 31.768020),  
             timeout=360, oauth=cred)

my location bounding is in jerusalem, Israel but after running the code the tweets that are get are:

tweets.df <- parseTweets("tweets_katamon.json", verbose = TRUE)
19 tweets have been parsed. 

points <- data.frame(x = as.numeric(tweets.df$lon), y = as.numeric(tweets.df$lat))

points
          x        y
1        NA       NA
2  35.77223 32.00551
3  35.86078 32.55099
4  35.83718 32.55038
5        NA       NA
6  35.85309 32.53755
7  35.91197 31.97188
8        NA       NA
9  35.88973 31.94219
10 35.83639 32.57646
11 35.98629 32.49510
12       NA       NA
13 35.86328 31.94861
14 35.91057 31.89128
15 35.85144 32.54056
16 36.31147 32.24603
17 35.90122 32.41728
18       NA       NA
19 35.84487 31.94388

The tweets gatherd are out of my geographic bounding.


בקיצור כל המיקומים נמצאים בעמאן- מחוץ לתיחום שהגדרתי

Reply all
Reply to author
Forward
0 new messages