R: Extract geotagged tweets stored as a data.frame
t2SpatialPointDataFrame
R Documentation
Extract geotagged tweets stored as a data.frame
Description
A function to create a SpatialPointsDataFrame with only the tweets with lat lon columns filled. Not all the tweets are geotagged. Tweets should be subset from the original data.frame to get only tweets with coordinates.
Usage
t2SpatialPointDataFrame(tweets)
Arguments
tweets
A data.frame with tweets.
Details
Tweets data.frame can be created with the function t2DataFrame
Value
geotweets
Return geotagged tweets as a SpatialPointsDataFrame.
## Not run:
#tweets data.frame
tweets="tweets"
#function to extract only geotagged tweets a SpatialPointsDataFrame
geotweets<-t2SpatialPointDataFrame(tweets)
## End(Not run)