t2SpatialPointDataFrame: Extract geotagged tweets stored as a data.frame

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/t2SpatialPointDataFrame.R

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

1

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.

Author(s)

Pau Arag<c3><b3> Galindo parago@uji.es

See Also

tweet2r, t2DataFrame, sp

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

  #tweets data.frame
  tweets="tweets"
  
  #function to extract only geotagged tweets a SpatialPointsDataFrame
  geotweets<-t2SpatialPointDataFrame(tweets)
  
## End(Not run)

pauarago/tweet2r documentation built on May 24, 2019, 8:22 p.m.