Learn R Programming

tweet2r (version 1.1)

tsubset: Subset points from geotweets or SaptialPointsDataFrame

Description

This function do a subset points over a polygon defined by a SpatialPolygonsDataFrame. Takes the points within the Polygon and remove the points outside it.

Usage

tsubset(geotweets, pbox, transform=TRUE)

Arguments

geotweets

input Geotagged tweets as a SpatialPointsDataFrame.

pbox

A SpatialPolygonsDataFrame to get the points over it.

transform

Option TRUE by default to transform the pbox CRS (Coordinate Reference System) to geotweets CRS.

Examples

Run this code
# NOT RUN {
tweetsSubset<-tsubset(geotweets, pbox)
# }
# NOT RUN {
{
  }
# }

Run the code above in your browser using DataLab